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

Thank you!

Wow! Ask and ye shall receive! Thank you so much Jacob! I'm now all set and ready for the blackout tomorrow. You rock!

Big hug,
@Kelly

This is a echt couth

jgurma's picture

This is a echt couth foreclose for me, Unoriginality cultivated that you are one of the jaunty blogger I e'er saw.Thanks for visor this consultatory refer.


astrology software

 

Glad your blog because it is

Singh's picture

Glad your blog because it is exactly what I was looking for, and we read all the posts. I look forward to another great article from you. marketing lists

I’m happy I found this blog!

James Bird's picture

I’m happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks. After Prom Ideas

Hi there would you mind

Dave Smithers's picture

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! Restaurant Marketing

Does your blog have a contact

Dave Smithers's picture

Does your blog have a contact page? I'm having a tough time locating it but, I'd like to shoot you an email. I've got some creative ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it improve over time. How To Hairstyles

Have you ever thought about

Dave Smithers's picture

Have you ever thought about writing an e-book or guest authoring on other sites? I have a blog based on the same topics you discuss and would love to have you share some stories/information. I know my viewers would enjoy your work. If you are even remotely interested, feel free to send me an e mail. DIYAR AL MUHARRAQ

Well, drupal website is very

asdfasd's picture

Well, drupal website is very good to know since I will apply this source for my website about goldsenze

I'm surprised at how quick

Ted's picture

I'm surprised at how quick your blog loaded on my phone .. I'm not even using WIFI, just 3G .. Anyways, very good site! liquidshop

Hi, this is what I think

markoseo's picture

Hi, this is what I think about for sure since it can work for my website like purses

Today, I went to the beach

Gary's picture

Today, I went to the beach front with my kids. I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! liquidshop

Together with the whole thing

francis's picture

Together with the whole thing which appears to be developing throughout this area, your viewpoints are very refreshing. Nevertheless, I beg your pardon, because I do not subscribe to your whole plan, all be it exhilarating none the less. It looks to us that your remarks are not totally justified and in simple fact you are generally your self not really fully convinced of the argument. In any event I did take pleasure in looking at it. china sourcing

Together with the whole thing

francis's picture

Together with the whole thing which appears to be developing throughout this area, your viewpoints are very refreshing. Nevertheless, I beg your pardon, because I do not subscribe to your whole plan, all be it exhilarating none the less. It looks to us that your remarks are not totally justified and in simple fact you are generally your self not really fully convinced of the argument. In any event I did take pleasure in looking at it. china sourcing

Well, I will apply the open

asdfsd's picture

Well, I will apply the open source code for website which can use with new version for baby shop

Once you follow these

Rana's picture

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. <a href="http://www.hausbau-kataloge24.de/bauen">Fertighaus</a>

Once you follow these

Rana's picture

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.<a href="http://www.hausbau-kataloge24.de/bauen">Fertighaus</a>

Once you follow these

Rana's picture

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.Fertighaus

Tagchen an alle, danke sehr

Rana's picture

Tagchen an alle, danke sehr für Eure Einfälle. Ich muss mal sehen was sich davon für mich umsetzen lässt. Fertighaus

Thank you again for all

carlaimre's picture

Thank you again for all information you distribute,Good publish. I was very enthusiastic about the content, it's quite motivating I should recognize. I like viewing you website since I always come across exciting content like this one.Great Job, I significantly appreciate that.Do Keep sharing! Regards nokia mobile prices

It took me quite some time

Victor's picture

It took me quite some time before I came across your site, well worth the pain though. Thanks for the code. Online Jobs

This post has helped me to

alexajohnson's picture

This post has helped me to have another perspective. I am researching this topic for a paper I am writing. Your article provided me great insight of my topic. cell phone listening

I wanted to thanks for your

Matthew's picture

I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post. Milly

Article in magazine is made

Martin Luther's picture

Article in magazine is made based on the theme. The theme and the article should be sometimes that people need to know. Then, the readers of the article will be useful. Pallet Delivery

I was studying some of your

Scott Styris's picture

I was studying some of your content on this internet site and I believe this site is rattling informative ! Continue posting . check backlinks

Pages