Created
January 18, 2012 14:16
-
-
Save mjball/1633198 to your computer and use it in GitHub Desktop.
Make Wikipedia work on 2012-01-18.
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 Un-SOPA Wikipedia | |
// @namespace http://mjball.github.com | |
// @description Make Wikipedia work on 2012-01-18. | |
// @include http://*.wikipedia.org/* | |
// ==/UserScript== | |
(function () | |
{ | |
function unSOPA() | |
{ | |
$(function () | |
{ | |
var i = setInterval(function () | |
{ | |
if ($('#mw-sopaOverlay').remove().length) | |
{ | |
clearInterval(i); | |
$('body > *').show(); | |
} | |
}, 100); | |
}); | |
} | |
var script = document.createElement("script"); | |
script.textContent = "(" + unSOPA.toString() + ")();"; | |
document.body.appendChild(script); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment