您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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 }); })();