Skip to content

Instantly share code, notes, and snippets.

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 micah1701/0cb3fba4dc515c227cc1 to your computer and use it in GitHub Desktop.
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:…
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));
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