NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Remove ad banner div (MangaSanctuary...) // @namespace Attilion // @description Remove background ad // @include http://www.*-sanctuary.com/* // @version 1.1 // @grant none // @run-at document-end // ==/UserScript== window.addEventListener('load', function() { setTimeout(function(){ var div_collection = document.querySelectorAll('div[style*=background]'); for (i = 0; i < div_collection.length - 1; i++){ if (div_collection[i].style.backgroundImage !== ""){ var background_ad = div_collection[i]; } } var parent_div = background_ad.parentElement; parent_div.removeChild(background_ad); parent_div.querySelector('#hab').setAttribute('style', 'margin: -140px auto 0px'); parent_div.setAttribute('style', 'background-image: none'); parent_div.setAttribute('style', 'background-color: whitesmoke'); }, 2000); }, false);