您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
6Z网站隐藏反拦截弹窗。
// ==UserScript== // @name 6Z网站隐藏反拦截弹窗 // @version 1.0 // @description 6Z网站隐藏反拦截弹窗。 // @author DeepSeek // @match https://blog.6ziz.com/* // @grant none // @run-at document-start // @namespace https://greasyfork.org/users/452911 // ==/UserScript== (function() { 'use strict'; // 创建并立即启动MutationObserver const observer = new MutationObserver(mutations => { for (const mutation of mutations) { for (const node of mutation.addedNodes) { if (node.nodeType === 1) checkAndHide(node); } } }); // 检查并隐藏元素 function checkAndHide(element) { const style = getComputedStyle(element); if ((style.zIndex === '2147483647' || parseInt(style.zIndex) === 2147483647) && (style.width === '100%' || style.width === '100vw') && (style.height === '100%' || style.height === '100vh')) { element.style.display = 'none'; element.remove(); } // 检查子元素 for (const child of element.children) { checkAndHide(child); } } // 立即开始观察文档 observer.observe(document, { childList: true, subtree: true, attributes: true, attributeFilter: ['style'] }); // 初始检查 if (document.documentElement) { checkAndHide(document.documentElement); } })();