NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Ad blocking warning remover for zpravy.idnes.cz // @namespace https://salamek.cz/ // @version 0.3 // @description Removes annoying dialog requesting you to disable ad blocking software from zpravy.idnes.cz and other sites on *.idnes.cz domain // @author Adam Schubert // @match http://*.idnes.cz/* // @grant none // @require http://code.jquery.com/jquery-latest.js // ==/UserScript== (function() { 'use strict'; function remove(){ var $dialog = $('.box-in').parent('div'); if ($dialog.length) { /*Remove*/ $dialog.remove(); if (window.console) { console.log('Removing ad blocking warning'); } } } MutationObserver = window.MutationObserver || window.WebKitMutationObserver; var observer = new MutationObserver(function(mutations, observer) { remove(); }); observer.observe(document, { subtree: true, childList: true }); })();