// ==UserScript== // @name Remove div with z-index 1001 (auto) // @namespace http://tampermonkey.net/ // @version 1.0 // @description Remove div with style attribute containing 'z-index: 1001;' (auto) // @author Your name // @match https://example.com/* // @grant none // ==/UserScript==

(function() { 'use strict';

const observer = new MutationObserver(mutations => { mutations.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node.nodeType === Node.ELEMENT_NODE && node.matches('div[style]')) { const styles = node.getAttribute('style'); if (styles.includes('z-index: 1001;')) { node.remove(); } } }); }); });

observer.observe(document.body, { childList: true, subtree: true }); })();

自动移除带有 z-index: 1001 的 div 元素 - Tampermonkey 脚本

原文地址: https://www.cveoy.top/t/topic/otq8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录