// ==UserScript== // @name Repubblica.it: Hide Annoying popups (the anti-adblock popup and others) // @name:it Repubblica.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://*.repubblica.it/* // @grant none // @require https://update.greasyfork.icu/scripts/535551/1586801/HideAnnoyingPopupsLib.js // @version 1.1.4 // @author Cyrano68 // @license MIT // @namespace https://greasyfork.org/users/788550 // @downloadURL https://update.greasyfork.icu/scripts/490674/Repubblicait%3A%20Hide%20Annoying%20popups%20%28the%20anti-adblock%20popup%20and%20others%29.user.js // @updateURL https://update.greasyfork.icu/scripts/490674/Repubblicait%3A%20Hide%20Annoying%20popups%20%28the%20anti-adblock%20popup%20and%20others%29.meta.js // ==/UserScript== (function() { "use strict"; const haplib = window.HideAnnoyingPopupsLib; const myVersion = GM_info.script.version; haplib.consoleLog(`==> Repubblica_it_HideAnnoyingPopups: HELLO! Loading script (version: ${myVersion})...`); //document.addEventListener("DOMContentLoaded", onDOMContentLoaded); //window.addEventListener("load", onWindowLoaded); haplib.consoleLog(`==> Repubblica_it_HideAnnoyingPopups: Using library 'HideAnnoyingPopupsLib' (version: ${haplib.getVersion()})`); const mutationObserverConfig = {subtree: true, childList: true}; const mutatedNodesConfig = {selectors: ["div.fc-dialog-container", "div.video-frame__wrapper", "div#adagio-overlay-try-buy"]/*, onMutatedNode: onMutatedNode*/}; haplib.configure(mutationObserverConfig, mutatedNodesConfig); haplib.consoleLog("==> Repubblica_it_HideAnnoyingPopups: Script loaded"); })();