This script hides the annoying popups (the anti-adblock popup and others) that are shown in the web page.
// ==UserScript==
// @name IlSole24Ore.com: Hide Annoying popups (the anti-adblock popup and others)
// @name:it IlSole24Ore.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.
// @match https://*.ilsole24ore.com/*
// @grant none
// @require https://update.greasyfork.org/scripts/547732/1651464/BasicLib.js
// @require https://update.greasyfork.org/scripts/535551/1651487/HideAnnoyingPopupsLib.js
// @version 1.1.2
// @author Cyrano68
// @license MIT
// @namespace https://greasyfork.org/users/788550
// ==/UserScript==
(function()
{
"use strict";
const blib = window.BasicLib;
blib.consoleLog(`==> IlSole24Ore_com_HideAnnoyingPopups: Using library 'BasicLib' (version: ${blib.getVersion()})`);
const haplib = window.HideAnnoyingPopupsLib;
blib.consoleLog(`==> IlSole24Ore_com_HideAnnoyingPopups: Using library 'HideAnnoyingPopupsLib' (version: ${haplib.getVersion()})`);
const myVersion = GM_info.script.version;
blib.consoleLog(`==> IlSole24Ore_com_HideAnnoyingPopups: HELLO! Loading script (version: ${myVersion})...`);
const currUrl = window.location.href;
blib.consoleLog(`==> IlSole24Ore_com_HideAnnoyingPopups: currUrl='${currUrl}'`);
//document.addEventListener("DOMContentLoaded", onDOMContentLoaded);
//window.addEventListener("load", onWindowLoaded);
const mutationObserverConfig = {subtree: true, childList: true};
const mutatedNodesConfig = {selectors: ["div.s24_adb", "div#onetrust-consent-sdk", "div#fixedBannerFooter"]/*, onMutatedNode: onMutatedNode*/};
haplib.configure(mutationObserverConfig, mutatedNodesConfig);
blib.consoleLog("==> IlSole24Ore_com_HideAnnoyingPopups: Script loaded");
})();