Forked from mathiasbynens/wikipedia-remove-sopa-warning.user.js
Created
January 18, 2012 08:55
-
-
Save hemanth/1632057 to your computer and use it in GitHub Desktop.
Userscript that removes the SOPA overlay on English Wikipedia
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
// ==UserScript== | |
// @name Disable the SOPA overlay on English Wikipedia | |
// @author Mathias Bynens <http://mathiasbynens.be/> | |
// @match http://en.wikipedia.org/wiki/* | |
// ==/UserScript== | |
// http://mths.be/unsafewindow | |
window.unsafeWindow || ( | |
unsafeWindow = (function() { | |
var el = document.createElement('p'); | |
el.setAttribute('onclick', 'return window;'); | |
return el.onclick(); | |
}()) | |
); | |
unsafeWindow.jQuery('#siteNotice, #mw-sopaOverlay').remove().end().add('#content').show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment