您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blokuje <div id="notRemoverPopup"> na examtopics.com i innych stronach
// ==UserScript== // @name Block notRemoverPopup (examtopics fix) // @namespace http://tampermonkey.net/ // @version 1.1 // @description Blokuje <div id="notRemoverPopup"> na examtopics.com i innych stronach // @match https://www.examtopics.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function removePopupIfExists() { const popup = document.getElementById('notRemoverPopup'); if (popup) { console.warn('🔥 Usunięto notRemoverPopup'); popup.remove(); } } // 1. Co sekundę przez pierwsze 30 sekund sprawdzamy obecność elementu let counter = 0; const interval = setInterval(() => { removePopupIfExists(); counter++; if (counter > 30) clearInterval(interval); }, 1000); // 2. Obserwujemy też DOM na wypadek gdyby popup pojawił się później const observer = new MutationObserver((mutations) => { for (const mutation of mutations) { for (const node of mutation.addedNodes) { if (node.nodeType === 1 && node.id === 'notRemoverPopup') { console.warn('🚫 Wykryto i usunięto notRemoverPopup (observer)'); node.remove(); } } } }); const tryObserve = () => { const target = document.body; if (target) { observer.observe(target, { childList: true, subtree: true, }); } else { // Spróbuj ponownie za chwilę, jeśli body nie jest jeszcze gotowe setTimeout(tryObserve, 500); } }; tryObserve(); })();