Adding SOPA blackout to a Drupal Gardens

If you want to blackout your site in protest of SOPA/PIPA, here's what you gotta do:

(hat tip to http://www.zachstronaut.com for the blackout page).

Important: Keep the url mysite.drupalgardens.com/admin/content handy. 

Once you follow these instructions, your site will go dark (if it is January 18th 2012).  If you want to get it back, you will need to delete the block later.

  1. Navigate to Structure -> Blocks
  2. Click on "Add Block"
  3. In the "Body" use the dropdown to change from "Safe HTML" to "Full HTML" (the buttons will go away)
  4. Make the block show by setting a region.
  5. Copy the following and paste it into the body:

 



<

div>

<script type="text/javascript">
    var a = new Date;
    if (18 == a.getDate() && 0 == a.getMonth() && 2012 == a.getFullYear()) {
        window.onload = function () {
            var cover = document.createElement('div');
            cover.style.position = 'fixed';
            cover.style.zIndex = 9999999;
            cover.style.width = window.innerWidth + 'px';
            cover.style.height = window.innerHeight + 'px';
            cover.style.top = 0;
            cover.style.backgroundColor = '#000';
            cover.innerHTML = '<iframe src="http://www.zachstronaut.com/lab/text-shadow-box/stop-sopa.html" width="100%" height="100%" frameBorder="0"></iframe>';
            document.body.appendChild(cover);
            window.onresize = function () {
                cover.style.width = window.innerWidth + 'px';
                cover.style.height = window.innerHeight + 'px';
            }
        }
    }
</script>

Tags: 

Comments

I loved up to you will

I loved up to you will receive performed right here. The comic strip is tasteful, your authored material stylish. however, you command get got an shakiness over that you wish be delivering the following. in poor health surely come further... how to make a website

Hi there would you mind

Hi there would you mind letting me know which web host you're using? I've loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most. Can you recommend a good web hosting provider at a honest price? Thanks a lot, I appreciate it! Get free facebook credits

People who create with words,

People who create with words, pictures and sounds are just as valuable as those who create with code, and all deserve a system which protects both their creativity and their income. But SOPA & PIPA were not meant to be part of this system. view here

Kelly is Great...

This is an impressed sharing mentioning the various information so creatively. I am really amused by such kind of sharing.I was looking for this one . I’m definitely tired of struggling to find relevant and intelligent comments on this topic. ... Legal Highs

The Stop Online Piracy Act

The Stop Online Piracy Act (SOPA, H.R. 3261) is on the surface a bill that attempts to curb online piracy. Sadly, the proposed way it goes about doing this would devastate the online economy and the overall freedom of the web

sbobet

Add new comment | Jacob Singh

I loved as much as you will receive carried out right here.
The sketch is tasteful, your authored subject matter
stylish. nonetheless, you command get got an impatience over that you wish be delivering the following.
unwell unquestionably come further formerly again as exactly the same nearly a
lot often inside case you shield this increase.

Sexy

While you certainly will not make money fast or instantly win awards, should you include a bit of effort you can earn anything you want! You are able to receive factors with regard to vouchers for example Amazon . com, iTunes, ASOS and Xbox 360 Reside, the choice is yours. It's not hard to make use of your free time to earn shop free. While you certainly will not make money fast or even immediately earn prizes, should you put in a little bit of work you can generate anything you want! You are able to redeem factors with regard to vouchers for example Amazon, i-tunes, ASOS as well as Xbox Reside, the choice is yours.

groups

Very good blog you have here but I was wanting to know if you knew of any discussion boards that cover the same topics discussed here? I'd really like to be a part of group where I can get advice from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Many thanks! yacht charter turkey

I've loaded your blog in 3

I've loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most. Can you recommend a good web hosting provider at a honest price? Thanks a lot, I appreciate it! medical

Pages