January 18th is Stop SOPA day. Join us by blacking out your site with a simple and easy to use

SOPA Blackout JS Utility

Earlier this week, Reddit.com announced that they would be blacking out their site on January 18th. Likewise, many of us should take similar action versus this bill. The damage it would cause to our internet infrastructure would be irreparable. What we propose is a simple, but effective message for any webmasters to use on their site on this date.

How to use

The following will present a blackout banner when users visit your site, which can be circumvented by clicking anywhere:

<script type="text/javascript" src="//js.sopablackout.org/sopablackout.js"></script>

The following will blackout an element of a specific id:

<script type="text/javascript">sopablackout_id = 'sopa';</script>

<script type="text/javascript" src="//js.sopablackout.org/sopablackout.js"></script>

Other advanced variables:

sopablackout_srsbzns = true; // Disables the click through

sopablackout_on = [2012, 1, 18]; // Fire only on this local date

Wordpress Plugin

Sasha Gerrand kindly created a wordpress plugin to easily implement this. Check it out on github.