Created
January 18, 2012 05:22
-
-
Save timraymond/1631148 to your computer and use it in GitHub Desktop.
Remove SOPA overlay from Wikipedia pages
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
$("#mw-page-base, #mw-head-base, #content, #mw-head, #mw-panel, #footer").css("display", "inherit"); | |
$("#mw-sopaOverlay").css("display", "none"); |
this shorter version works
$("div").css("display", "inherit");
$("#mw-sopaOverlay").css("display", "none");
Even shorter:
$("#content").show();
It doesn't get rid of the overlay, just pushes it to the bottom of the page and shows the content at the top. But it works. Also doesn't display navigation. For the rest:
$(".noprint").show();
$("#footer").show();
$("#mw-sopaOverlay").hide();
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I documented a bunch of methods: https://gist.github.com/1631355