NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Illustreret Videnskab // @namespace http://tampermonkey.net/ // @version 0.1 // @description Remove nag-screen // @license MIT // @author Bastard // @match https://illvid.dk/* // @grant none // ==/UserScript== (function() { 'use strict'; // set up the mutation observer var observer = new MutationObserver(function (mutations, me) { var allStyles = document.getElementsByTagName("head")[0].getElementsByTagName("style") var lastStyle = allStyles[allStyles.length-1]; if (lastStyle.textContent.startsWith(".full-height")) { console.log('NOW'); lastStyle.remove(); var nagScreen = document.querySelector('#piano-container'); nagScreen.remove(); me.disconnect(); // stop observing } }); // start observing observer.observe(document, { childList: true, subtree: true }); })();