De-Blackout Wikipedia With This Bookmarklet


Yes, Wikipedia is blacked out to protest SOPA, the bill that wants to censor your internet. We’re already staunchly anti-SOPA around Lifehacker HQ, so while we’re all for the blackout (solidarity!), it’s kind of preaching to the choir. And while we’ve rounded up a few ways to circumvent the blackout, the best yet comes courtesy of Chris Beidelman.

Says Chris:

Some simple Javascript fixes the Wikipedia blackout:

Javascript:document.body.removeChild(document.getElementById(“mw-sopaOverlay”));var a=document.getElementById(“content”).style.display=”block”;var a=document.getElementById(“mw-head”).style.display=”block”;var a=document.getElementById(“mw-panel”).style.display=”block”;var a=document.getElementById(“footer”).style.display=”block”;var a=document.getElementById(“mw-page-base”).style.display=”block”;var a=document.getElementById(“mw-head-base”).style.display=”block”;

Just open the Wikipedia article, paste the above code into the address bar, and hit enter. Can be made into a bookmarklet.

Here’s how to create what I’m calling a “Wikipedia White” bookmarklet in Chrome:

Wikipedia White

  1. Click Chrome’s wrench button > Bookmarks > Bookmark Manager
  2. Click Organise > Add Page
  3. Name your bookmarklet (as I said, I’m calling it Wikipedia White) and paste the JavaScript code above into the URL input.
  4. Next time you visit a page that goes black, just click your Wikipedia White bookmarklet and boom — no more blackout.

Thanks Chris!


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


8 responses to “De-Blackout Wikipedia With This Bookmarklet”

Leave a Reply