Last active
August 29, 2015 14:17
-
-
Save xorrbit/0af92f3a9be099446fda to your computer and use it in GitHub Desktop.
hide freep login
This file contains hidden or 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
// Install the Greasemonkey extension for Firefox or the Tampermonkey extension for Chrome | |
// then click the Raw button ---> | |
// ==UserScript== | |
// @name hide freep login | |
// @namespace xorrbit | |
// @include http://*.winnipegfreepress.com/* | |
// @version v5 | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener("load", function() { | |
body = document.body; | |
darkBg = document.getElementsByClassName("mfp-bg")[0]; | |
loginPopup = document.getElementsByClassName("mfp-wrap")[0]; | |
body.removeChild(darkBg); | |
body.removeChild(loginPopup); | |
document.documentElement.style.overflowY = "auto"; | |
} , false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment