Skip to content

Instantly share code, notes, and snippets.

@xorrbit
Last active August 29, 2015 14:17
Show Gist options
  • Save xorrbit/0af92f3a9be099446fda to your computer and use it in GitHub Desktop.
Save xorrbit/0af92f3a9be099446fda to your computer and use it in GitHub Desktop.
hide freep login
// 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