您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove KissInsights dialogs from all web sites.
当前为
// ==UserScript== // @name Kiss Insights Goodbye // @namespace https://github.com/johan/ // @description Remove KissInsights dialogs from all web sites. // @match https://*/* // @match http://*/* // @run-at document-start // @version 0.0.1.20140419225638 // ==/UserScript== var start = +new Date , kmode = localStorage.KissInsights , quiet = kmode === 'quiet' , is_ki = /^\/\/s3\.amazonaws\.com\/(ki\.js|r\.kissinsights\.com)\// , edits = { childList: true , subtree: true } ; if (quiet || !kmode) (new WebKitMutationObserver(removeKissInsights)).observe(document, edits); function removeKissInsights(mutations) { for (var i = 0, m; m = mutations[i]; i++) for (var j = 0, a = m.addedNodes, n; n = a[j]; j++) if (n.id === 'ki_container') nuke('Kiss Insights container removed: ', n); else if (n.src && /^script$/i.test(n.nodeName) && is_ki.test(n.getAttribute('src'))) nuke('Kiss Insights script removed: ', n); } function nuke(msg, n) { n.parentNode.removeChild(n); if (quiet) return; var args = [].slice.call(arguments) , help = '\nTo enable for this site, set localStorage.KissInsights = true;' ; console.warn.apply(console, [+new Date - start +'ms:'].concat(args, help)); }