Skip to content

Instantly share code, notes, and snippets.

@revuel
Created July 23, 2020 15:11
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 revuel/3a3ba7d944bda65c7aa7fa9efbaa41fc to your computer and use it in GitHub Desktop.
Save revuel/3a3ba7d944bda65c7aa7fa9efbaa41fc to your computer and use it in GitHub Desktop.
/* To get rid of the useless subscription block of the digital diary "20Minutes"
* Works as of July 2020
* Just copy and paste the follwoing code to the browser's console at 20minutes site
*/
function enableRead() {
// Allow scroll down
var body = document.getElementsByTagName("body")
body[0].setAttribute("style", "")
// Remove subscription form
var banner = document.getElementsByClassName("fc-ab-root")
banner[0].parentElement.removeChild(banner[0])
}
enableRead()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment