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

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

Does your blog have a contact

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

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

Today, I went to the beach

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

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

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

Once you follow these

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

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>

Thank you again for all

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

Pages