您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tampermonkey script to remove annoying subscription popup on online journals when adblock is on
// ==UserScript== // @name Popup remover // @namespace https://github.com/Phillip2025/popup-remover // @version 0.1.0 // @description Tampermonkey script to remove annoying subscription popup on online journals when adblock is on // @author phillip2025 // @match https://elpais.com/* // @match https://www.20minutos.es/* // @grant GM_log // @run-at document-end // ==/UserScript== (function() { 'use strict'; var tries = 0; var timer = setInterval(function(){ var elems = unsafeWindow.document.getElementsByClassName('fc-ab-root'); if (elems.length > 0) { GM_log("founded popup"); elems[0].remove(); GM_log("removed popup"); unsafeWindow.document.body.style.overflow = 'visible'; GM_log("overflow restored"); clearInterval(timer); } tries++; if (tries > 10) { GM_log("time exceeded"); clearInterval(timer); } }, 1000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址