Last active
August 22, 2018 14:09
-
-
Save mathvbarone/78e7ae3d36ec501005f5a2d5857b1c44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
var modals = ['.tp-backdrop ', '#detecta-adblock', '.tp-iframe-wrapper']; | |
var body = document.querySelector('body'); | |
function getElement(element) { | |
element = document.querySelector(element); | |
return element; | |
} | |
modals.forEach(function (modal) { | |
newModal = getElement(modal); | |
if (newModal) { | |
newModal.setAttribute('style', 'display:none !important'); | |
} | |
}); | |
body.setAttribute('style', 'overflow:initial !important'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment