Skip to content

Instantly share code, notes, and snippets.

@mjball
Created January 18, 2012 14:16
Show Gist options
  • Save mjball/1633198 to your computer and use it in GitHub Desktop.
Save mjball/1633198 to your computer and use it in GitHub Desktop.
Make Wikipedia work on 2012-01-18.
// ==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