您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove the adblock modal on lastampa.it and repubblica.it
// ==UserScript== // @name La Stampa/Repubblica Adblock Modal Remover // @name:it La Stampa/Repubblica Elimina Messaggio Adblock // @namespace http://tampermonkey.net/ // @version 0.1 // @description Remove the adblock modal on lastampa.it and repubblica.it // @description:it Elimina il messaggio modale che impedisce l'uso dei siti di La Stampa (lastampa.it) e Repubblica (repubblica.it) in caso di presenza di adblocker // @author CAFxX // @match https://*.lastampa.it/* // @match https://*.repubblica.it/* // @grant none // ==/UserScript== (function() { 'use strict'; const log = (...args) => console.log("gedi-adblock-modal-remover:", ...args); log("starting"); let attempts = 0; const mangle = () => { document.querySelector("body").style.overflow = ""; const overlay = document.querySelector("div.fc-ab-root"); if (overlay != null) { overlay.style.setProperty("display", "none", "important"); log("overlay hidden"); } else if (attempts < 200) { attempts++; setTimeout(mangle, 250); log("overlay not found: retrying"); } else { log("overlay not found"); } }; mangle(); })();