Created
July 23, 2020 15:11
-
-
Save revuel/3a3ba7d944bda65c7aa7fa9efbaa41fc 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
/* 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