您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script hides the annoying popups (the anti-adblock popup and others) that are shown in the web page.
// ==UserScript== // @name Gazzetta.it: Hide Annoying popups (the anti-adblock popup and others) // @name:it Gazzetta.it: Nasconde i popup fastidiosi (il popup anti-adblock ed altri) // @description This script hides the annoying popups (the anti-adblock popup and others) that are shown in the web page. // @description:it Questo script nasconde i popup fastidiosi (il popup anti-adblock e altri) che vengono visualizzati nella pagina web. // @match https://*.gazzetta.it/* // @grant none // @require https://updategreasyfork.deno.dev/scripts/535551/1586801/HideAnnoyingPopupsLib.js // @version 1.0.7 // @author Cyrano68 // @license MIT // @namespace https://gf.zukizuki.org/users/788550 // ==/UserScript== (function() { "use strict"; const haplib = window.HideAnnoyingPopupsLib; const myVersion = GM_info.script.version; haplib.consoleLog(`==> Gazzetta_it_HideAnnoyingPopups: HELLO! Loading script (version: ${myVersion})...`); //document.addEventListener("DOMContentLoaded", onDOMContentLoaded); //window.addEventListener("load", onWindowLoaded); haplib.consoleLog(`==> Gazzetta_it_HideAnnoyingPopups: Using library 'HideAnnoyingPopupsLib' (version: ${haplib.getVersion()})`); const mutationObserverConfig = {subtree: true, childList: true, attributes: true, attributeOldValue: true, attributeFilter: ["class"]}; const mutatedNodesConfig = {selectors: ["div.privacy-cp-wall", "div.bck-adblock"]/*, onMutatedNode: onMutatedNode*/}; const mutatedAttributesConfig = {attributeInfos: [{attributeName: "class", targetTagName: "HTML"}, {attributeName: "class", targetTagName: "BODY"}]/*, onMutatedAttribute: onMutatedAttribute*/}; haplib.configure(mutationObserverConfig, mutatedNodesConfig, mutatedAttributesConfig); haplib.consoleLog("==> Gazzetta_it_HideAnnoyingPopups: Script loaded"); })();