您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A simple anti-adblock script, will work for typical anti-adblock stuff rolled out by Google.
// ==UserScript== // @name Anti-Anti Adblock v1 (All Sites) // @namespace https://gf.qytechs.cn/en/users/198860-zyenith // @grant none // @description A simple anti-adblock script, will work for typical anti-adblock stuff rolled out by Google. // @author zyenith // @version 0.0.1 // @match *://*/* // @run-at document-start // @antifeature Tracking, for compatibility info // @require https://gf.qytechs.cn/scripts/410512-sci-js-from-ksw2-center/code/scijs%20(from%20ksw2-center).js // ==/UserScript== const detected = { active: false, element: null }; const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { mutation.addedNodes.forEach((node) => { if (!node.classList) { return; } const allElements = document.getElementsByTagName("*"); const element = Array.from(allElements).find((element) => element.classList.value.length && element.tagName === "DIV" && element.textContent.match(/Support\sFree\s\w+/)); if (!element) { return; } detected.active = true; detected.element = element; observer.disconnect(); const visibilityObserver = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.target.style.visibility === "hidden") { element.remove(); visibilityObserver.disconnect(); }; }); }); visibilityObserver.observe(element, { attributes: true }); }); }); }); observer.observe(document, { childList: true, subtree: true }); setTimeout(observer.disconnect, 25000);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址