Skip to content

Instantly share code, notes, and snippets.

@mathvbarone
Last active August 22, 2018 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathvbarone/78e7ae3d36ec501005f5a2d5857b1c44 to your computer and use it in GitHub Desktop.
Save mathvbarone/78e7ae3d36ec501005f5a2d5857b1c44 to your computer and use it in GitHub Desktop.
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