Created
January 18, 2012 13:35
-
-
Save spudtrooper/1633029 to your computer and use it in GitHub Desktop.
Blacks out MPAA, RIAA, and other sites
This file contains 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 Blackout MPAA and RIAA sites | |
// @namespace http://jeffpalm.com/blackout | |
// @description Blacks out MPAA ad RIAA and possibly others | |
// @include http://riaa.com* | |
// @include http://mpaa.org* | |
// ==/UserScript== | |
(function() { | |
var html = '<style>p{color:#000;}</style><div id="sopa-wrapper" style="z-index:1001;background:#000;-moz-opacity:0.9;filter:alpha(opacity=90);opacity:0.9;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;">'; | |
html += '<div style="display:block;-moz-opacity:1.0;filter:alpha(opacity=100);opacity:1.0;z-index:1002;font-family:helvetica,verdana;background:#fff;width:300px;margin:100px auto 0 auto;padding:15px;text-align:center;border:2px solid darkred;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;"><h1 style="margin-top:0;font-size:x-large;color:darkred;">WEBSITE BLOCKED</h1> <br> <p>This is what the web could look like under the Stop Online Piracy Act.</p><br><p><a href="https://wfc2.wiredforchange.com/o/9042/p/dia/action/public/?action_KEY=8173">Contact your representatives</a><br>or learn more at about SOPA and PIPA at <br><a href="http://sopablackout.org/learnmore">sopablackout.org</a>.</p><br><p>Keep the web open.</p><br><p class="small">(Click anywhere to continue)</p></div>'; | |
html += '</div>'; | |
document.body.innerHTML += html; | |
var sopaBanner = document.getElementById('sopa-wrapper'); | |
sopaBanner.onclick = function(){ sopaBanner.style.display = 'none'; }; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment