Questo script nasconde i popup fastidiosi (il popup anti-adblock e altri) che vengono visualizzati nella pagina web.
// ==UserScript==
// @name 3BMeteo.com: Hide Annoying popups (the anti-adblock popup and others)
// @name:it 3BMeteo.com: 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.
// @namespace https://greasyfork.org/users/788550
// @version 1.1.2
// @author Cyrano68
// @license MIT
// @match https://*.3bmeteo.com/*
// @require https://update.greasyfork.org/scripts/547732/1651464/BasicLib.js
// @require https://update.greasyfork.org/scripts/535551/1709323/HideAnnoyingPopupsLib.js
// @grant none
// ==/UserScript==
// This is a IIFE (Immediately Invoked Function Expression).
(function()
{
"use strict";
const blib = window.BasicLib;
blib.consoleLog(`==> 3BMeteo_com_HideAnnoyingPopups: Using library 'BasicLib' (version: ${blib.getVersion()})`);
const haplib = window.HideAnnoyingPopupsLib;
blib.consoleLog(`==> 3BMeteo_com_HideAnnoyingPopups: Using library 'HideAnnoyingPopupsLib' (version: ${haplib.getVersion()})`);
//// When enabled, additional log will be shown.
//haplib.setShowDebugLog(true);
const myVersion = GM_info.script.version;
blib.consoleLog(`==> 3BMeteo_com_HideAnnoyingPopups: HELLO! Loading script (version: ${myVersion})...`);
const currUrl = window.location.href;
blib.consoleLog(`==> 3BMeteo_com_HideAnnoyingPopups: currUrl='${currUrl}'`);
//document.addEventListener("DOMContentLoaded", onDOMContentLoaded);
//window.addEventListener("load", onWindowLoaded);
const mutationObserverConfig = {subtree: true, childList: true};
const mutatedNodesConfig = {selectors: ["div#iubenda-cs-banner", "div#sidebar-video-fixed"]/*, onMutatedNode: onMutatedNode*/};
haplib.configure(mutationObserverConfig, mutatedNodesConfig);
blib.consoleLog("==> 3BMeteo_com_HideAnnoyingPopups: Script loaded");
})();