Disable tooltip on hover for CFA Institute Courses pages
// ==UserScript==
// @name Disable Tooltips on CFA Institute Courses
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Disable tooltip on hover for CFA Institute Courses pages
// @author vacuity
// @license MIT
// @match https://learn.cfainstitute.org/courses*
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
// Remove title attributes initially
document.querySelectorAll('[title]').forEach(el => el.removeAttribute('title'));
// Observe future DOM changes and strip title attributes too
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
mutation.addedNodes.forEach(node => {
if (node.nodeType === Node.ELEMENT_NODE) {
if (node.hasAttribute && node.hasAttribute('title')) {
node.removeAttribute('title');
}
node.querySelectorAll?.('[title]').forEach(el => el.removeAttribute('title'));
}
});
});
});
observer.observe(document.body, { childList: true, subtree: true });
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址