Created
May 28, 2020 12:59
-
-
Save robmclarty/f65ea6025c96ce9747f4b946f5bdf4e9 to your computer and use it in GitHub Desktop.
Disable Torstar's CSS Paywall
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
// 1. open your browser's dev tools | |
// 2. paste the following code into the console | |
// 3. press ENTER and read article | |
var paywall = document.querySelector('.basic-paywall-new'); | |
paywall.style.display = 'none'; | |
var paragraphs = document.querySelectorAll('.text-block-container'); | |
paragraphs.forEach(function (p) { | |
p.style.display = 'block'; | |
}); | |
var footer = document.querySelector('#footer'); | |
footer.style.display = 'block'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment