Turn into bookmarklets using https://caiorss.github.io/bookmarklet-maker/ for easy access.
Last active
April 27, 2020 16:30
-
-
Save kjbrum/b52cfa588e7131d7859f603f25590907 to your computer and use it in GitHub Desktop.
Scripts for removing popups
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
document.querySelector('.tp-modal').outerHTML = ''; | |
document.querySelector('.tp-backdrop').outerHTML = ''; | |
document.body.className = document.body.className.replace('tp-modal-open', ''); |
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
document.querySelector('#overlayParent').outerHTML = ''; | |
document.querySelector('#overlayMask').outerHTML = ''; |
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
var css = document.createElement('style'); | |
css.type = 'text/css'; | |
css.textContent = ` | |
.standard-body > .content-lede-image, .standard-body > .standard-body-content > *:not(.breaker-ad):not(.vertical-ad), .article-container > .article-body > *:not(.breaker-ad):not(.vertical-ad), .slideshow-inner > .slideshow-lede > *:not(.breaker-ad):not(.vertical-ad), .listicle-body >.content-lede-image, .listicle-intro, .listicle-body-content > .listicle-slide, .recipe-container > .recipe-body > *:not(.breaker-ad):not(.vertical-ad) { | |
filter: none !important; | |
pointer-events: initial !important; | |
user-select: auto !important; | |
} | |
.piano-container-wrapper { | |
display: none !important; | |
} | |
`; | |
document.documentElement.appendChild(css); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment