How to view wikipedia on SOPA blackout day

On Wednesday wikipedia English is blacked out in protest of proposed anti-piracy law SOPA in US congress. you are greeted with blacked out page with information about SOPA. However you don’t have to postpone your research or daily wikipedia reading. You can still view wikipedia site despite the blackout, by simple javascript code bookmarlet that can show all hidden elements on page.

So how to show hidden element on page using Javascript?


  1.  var tags=document.getElementsByTagName("*"); //get all tags
  2.  for (var tg in tags){
  3.   try{
  4.   if (tags[tg].style.display=="none")tags[tg].style.display="block"; //check if they are hidden, display if they are
  5.   }catch(e){ }
  6.  }

Or you can copy the same code as bookmarklet to your browser bookmark bar. simply drag the link/button below and drop it on your browser’s bookmark bar or favorites. when on wikipedia on SOPA day or a page that you need to show all hidden elements , click Show all hidden elements.

Show all hidden elements