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

sdsdff

This is particularly handy for those moments where you need to quick recharge your cellphone. Two types of this product we have in stock is the Mo-Go emergency mobile phone and the <b><a href="http://se.enirgo.com/nodladdare/">Enirgo Power Cell Nödladdare</a></b>. The great thing about these kinds of chargers is that it only needs standard alkaline batteries to work and may be clipped away onto your key ring. Its really straightforward to use, all you need to do is plug the charger into your mobile phone and you may be able to make or receive phone calls!
 

fwda

Most of these exercises are push-ups, boards, plus falls intended for torso and main strength progression and also a various different physical exercises which acquire stomach plus central power. Incorporating all these very simple strength training workouts in your at home physical exercises plan pays a large dividend in the total health.

Mayweather Stream

James Evans's picture

It will also be possible to watch the Mayweather vs Cotto stream online as long as you have access to a computer and internet connection.

Sort Butterfly

I just wanted to mention that I really thought the image and the animation and all for this was REALLY well-done, and that I am very thankful that Jacon was so cool to make this happen for all the denizens of DG - thank you so much, Jacob.

Also, thanks for tweeting me the fix (worked!) to my own stupidity :)

The protest in Manhattan today went very well, and the whole protest was a great success, IMHO. Thank you for helping us do our little part.

Best regards Sort Butterfly

How to know

I enjoyed  too the article a great deal while reading. Thanks for sharing such a superb post.I desire to say really thank you for this terrific informations. now i realize about it

Mayweather vs Cotto Live Hd

Very Smart

Brako's picture

You are really knowledgeable and very smart. You wrote something that people could understand and be intriguing for everyone. Legal Highs

Thanks for the unmatchable

Thanks for the unmatchable diary.it was rale useful for me.navigator sharing specified ideas in the instant as symptomless.this was actually what i was labour for,and i am voluntary to came here!

pass in a necropolis shift. I

pass in a necropolis shift. I was exploit bored at process as no acquisition here at duty. So was searching finished any blogs and came crossways your journal, majuscule win man I liked what you wrote Inspirational and really substantive.

Khan vs Peterson live stream on 19 May 2012 Rematch Fight

Amir Khan v Lamont Peterson HBO Boxing Rematch May 19, 2012 will start on May 19, 2012 . So far a big Match in Boxing events where question arise that will Lamont Peterson beats Amir Khan?. Who is going to win the match Amir Khan v Lamont Peterson is not important question, because match is not stated yet and Judges score fight 113-112, 113-112, 110-115. Amir Khan vs Peterson or Khan vs Peterson: It’s a big match for King Khan and Lamont Peterson who already win the first fight against Amir Khan through Peterson defeats Khan via split decision need to connects with a left punch to the head of Peterson during the Capital Showdown . Amir Khan vs Lamont Peterson Boxing May 19, 2012 , billed as Capital Showdown, was a boxing match for Khan’s WBA (Super)

such a hot place

cosplayfancy's picture

I am happy to read this. This is the type of info that needs to be given and not the random misinformation that’s at the other places. I appreciate your sharing this greatest and maybe, just maybe, i’m not the only one! cosplay costume

Pages