Last active
August 29, 2015 14:08
-
-
Save micah1701/0cb3fba4dc515c227cc1 to your computer and use it in GitHub Desktop.
Bookmarklet to view content behind the registration walls on Tribune newspaper sites, like chicagotribune.com and the Hartford Courant. To use, simply create a new bookmark in Chrome and set the minified version of the below code as the "URL." Then click the bookmark whenever you encounter a modal popup that asks you to register or log in. Note:…
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
javascript: void((function(d) { | |
var modalblock = document.getElementById("reg-overlay"); | |
modalblock.parentElement.removeChild(modalblock); | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = 'body,html { overflow: auto !important; }'; | |
d.getElementsByTagName("head")[0].appendChild(style); | |
})(document)); |
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
javascript:void function(e){var t=document.getElementById("reg-overlay");t.parentElement.removeChild(t);var n=document.createElement("style");n.type="text/css",n.innerHTML="body,html { overflow: auto !important; } ",e.getElementsByTagName("head")[0].appendChild(n)}(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment