Skip to content

Instantly share code, notes, and snippets.

@treyhunner
Created January 18, 2012 06:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save treyhunner/1631368 to your computer and use it in GitHub Desktop.
Bookmarklet to Temporarily remove SOPA overlay from Wikipedia page
javascript:(function(){$('body').children('[id^=mw], #content, #footer').show().filter('#mw-sopaOverlay').hide();})()
@treyhunner
Copy link
Author

@sebdeckers
Copy link

Shorter:

@treyhunner
Copy link
Author

@CBas that solution shows a .suggestions-results element that should remain hidden, but it's nearly invisible. Even shorter:

$('body>*').toggle();

Shorter one that toggles the target elements properly:

$('body>[id^=mw], #content, #footer').toggle();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment