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'm definitely loving the

Dave's picture

I'm definitely loving the information. I'm bookmarking and will be tweeting this to my followers! Outstanding blog and amazing design. // propolis

SOPA

Dave's picture

 

I want to encourage you continue spreadthing the word about SOPA!
 

Dead?

Dave's picture

SOPA is dead now right? 

 

credit card machine

Great

gyyyan's picture

yacht charter turkey

I think the website should come up with more features. I believe the number of the visitors will increase. They should create kind of features that give the secure feeling for the users when they visit this site

web

Develop free of charge wedding websites that will help prepare plus talk about the main points of the wedding day. We offer all you need to make your wedding websites profitable. Incorporated characteristics are generally:Infinite Photos, Infinite Activities, Infinite RSVP's, Unlimited Up-dates, Endless Service.

Actions

Glad to learn you did something to fight that stupid (pardon me!) SOPA initiative. I hope it has been buried by now...

Great Post

yana's picture

High pr Backlinks

hi this is yana and i am first time to visiting on this site and this site give such great information to us.thanks for it............!!

Great Post

RK's picture

I Think This Is Very Valuable information and great research i like very much this post you must visit this.

Graduaciones

Awesome

jk's picture

keylogger

Hey about  i do believe your weblog is rather F - Enjoyable i found it in google and i set it on my favorite list  wish to see further great posts from u shortly.

Very informative and useful

Matt's picture

Very informative and useful article indeed. I really like the way writer has presented his views. I hope to see more great articles in future as well. http://istockpromocode.com/

People never use tags on my

Matt's picture

People never use tags on my site either and it drive me nuts. I wonder why someone doesn't make a plugin so that the publish button can't be pressed until first the tags are assigned. whizzinator

Every new visit i have always

Matt's picture

Every new visit i have always a new stuff of information in your blog. Really your blog, is marvelous. Thanks for stuff. homes in vancouver

As much as three quarters of

laurasharon's picture

As much as three quarters of hospital staff are usually burdened with some sort of billing-related work in a traditional billing system. Opting for electronic medical billing solutions (ones that come with free EMR plans) that fit easily into the healthcare business' workflow are key to freeing up staff resources. Medical Billing Services

Nice site

alina jopler's picture

The subject of this site keeps me thinking a lot.The main theme of the site is very outstanding and it is very much useful for the new readers like me. I was looking for this kind of sites for a long time. I am waiting eagerly for its further publications. It really keeps me amazing.    cell phone spy software   :)

Tens of millions of people

jimmy haster's picture

Tens of millions of people who make the internet what it is joined together to defend their freedoms. The network defended itself. Whatever you call it, we changed the politics of interfering with the internet forever--there's no going back.   @  cell phone listening  @

Sopa

Erica's picture

Is SOPA an American thing? I am from outside the US, does this have to concern me? <a href="http://www.tummytankz.com">Pregnancy Belly Band</a>

Checking

Jack's picture

Just checking back and wanted to let you know that this worked like a charm. Thanks a lot for this - and I hope they'll bury SOPA forever! <a href="http://www.tummytankz.com">Pregnancy Belly Band</a>

This could be the any of

jgurma's picture

This could be the any of action and descriptor equipoise i e'er seen this assembling. I test your dos on this method and also say thanks alot to rumination it with others.

online whiteboard

 

Pol zealous invitation of

jgurma's picture

Pol zealous invitation of interact, I am weensy to conceptualize it. There are so both developers matted on this container but this is one of the uncomparable act stockpile e'er. Thanks for enounce it here.

collaborative drawing

 

Info Toko Bunga & Indonesia tourist sites

Thank you for the information you write in this article, I like your style of writing, I wish there were more people like you who are willing to share knowledge through the Website which can be read by all people from all over the world .. Greetings .. success for you ..I want to share some info about a flower shop in Indonesia and tourist attraction in Indonesia, this may be useful to the reader .. please visit my website below.
<a href="http://www.tokobunganusantara.com">Toko Bunga</a>
<a href="http://www.wisata.tokobunganusantara.com">Objek Wisata</a>
<a href="http://www.indonesia-asia-holiday.com">Holiday to Indonesia</a>
<a href="http://www.medanmobilrental.com">Rental Mobil di Medan</a>

 

Good Work!

Good Work ! It's great to come across a blog every once in a while that isn't the same old rehashed information.Thank You !

Blackout

David 's picture

This is cool!  I missed the blackout protest but are there any otheres coming up I can participate in.  There are a ton of issues I would like to do this with.  Virtual Terminal

Good Work !

Yea ! i Agree in I’ve been around for quite a lot of time, but finally decided to show my appreciation of your work! Thanks!

I am very enjoyed for this

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. Umrah

good

I am very thankful that Jacon was so cool to make this happen for all the denizens of DG - thank you so much i am  ball mill

we could Adding SOPA

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy.

Fuses & Accessories----Glass Tube Fuses----Ceramic Fuses----Blade Fuses----Fuse Links----Bolt-on Fuses----Fuse Pullers----Fuse Holders----Flat Type Fuses

we could Adding SOPA

I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy.

Fuses & Accessories----Glass Tube Fuses----Ceramic Fuses----Blade Fuses----Fuse Links----Bolt-on Fuses----Fuse Pullers----Fuse Holders----Flat Type Fuses

guild wars 2 gold

xiaopig's picture

Right now my major concern about the whole thing is that I will get screwed after the fact. I live in Japan, and being locked to the NA datacenter doesn't hurt my feelings any. What I'm worried about Guild Wars 2 Gold is them later farming Japanese distribution out to a local company (as was done in gw1) and my NA version of the game suddenly being locked and unusable. Region locking so they can sell seperate distribution is sadly most likely in NCSoft's control, not Anets, which means we're likely to be ignored in favor of whatever method they predict gives them more cash.

CCTV Camera China,3G IP Camera,Standalone DVRs,IP Camera,Shenzhe

Buy CCTV Accessories from HuaBen|Buy CCTV cameras and equipment including full security systems and spy cameras for home and small business.
http://www.huabentech.com/IP-CAMERA-SYSTEMS-p-378.html

3G IP Camera,3G Network Camera,3G Security Camera Manufacturers - HuaBenTech.com
http://www.huabentech.com/3G-IP-Camera-p-414.html  

PoE Camera,ip poe camera,poe camera system,poe ip camera,power over ethernet camera
http://www.huabentech.com/IP-PoE-Cameras-p-468.html
 
Megapixel IP Camera,Megapixel IP camera,Megapixel ip camera outdoor,Megapixel ip camera china
http://www.huabentech.com/Megapixel-IP-Camera-p-379.html         

IP Dome Camera,Dome IP Camera,Megapixel IP Dome Camera - Huabentech.com
http://www.huabentech.com/IP-Dome-Camera-p-380.html  

IP Box Camera - Box IP Camera - Huabentech.com
http://www.huabentech.com/Box-IP-Camera-p-381.html   

Great Post

yana's picture

keylogger

Your work is very good and I appreciate you and hopping for some more informative posts. thank you for sharing great information to us

UFC 145 LIVE

As much as three quarters of hospital staff are usually burdened with some sort of billing-related work in a traditional billing system. Opting for electronic medical billing solutions (ones that come with free EMR plans) that fit easily into the healthcare business' workflow are key to freeing up staff resource

Glad to learn you did something to fight that stupid (pardon me!) SOPA initiative. I hope it has been buried by now

View my blog

UFC 145 LIVE Online    UFC 145 LIVE Online MAYWEATHER VS COTTO    MAYWEATHER VS COTTO LIVE

Glad to learn you did something to fight that stupid (pardon me!) SOPA initiative. I hope it has been buried by now

View my blog

UFC 145    UFC 145 MAYWEATHER VS COTTO    MAYWEATHER VS COTTO LIVE

Glad to learn you did something to fight that stupid (pardon me!) SOPA initiative. I hope it has been buried by now

View my blog

UFC 145 LIVE    UFC 145 MAYWEATHER VS COTTO LIVE    MAYWEATHER VS COTTO

Glad to learn you did something to fight that stupid (pardon me!) SOPA initiative. I hope it has been buried by now

View my blog

UFC 145 LIVE    UFC 145 LIVE MAYWEATHER VS COTTO    MAYWEATHER VS COTTO LIVE

Glad to learn you did something to fight that stupid (pardon me!) SOPA initiative. I hope it has been buried by now

View my blog

UFC 145 LIVE    UFC 145 LIVE MAYWEATHER VS COTTO    MAYWEATHER VS COTTO LIVE

Pages