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

Bookmarklet to turn off Google instant search and turn off search filter

Here is a useful bookmarklet to turn off Google’s instant search (another annoying feature from Google) the following bookmarklet consist of two buttons, one to take you to Google preferences, and the other will set the settings automatically, it will turn off instant search and turn off safesearch (adult filter). this is useful when working in incognito mode or private browsing .

Go Pref
Go Set

Drag each of the buttons above and drop it onto your bookmark bar.  Obviously you should FIRST go to Go pref then hit Go Set. When you first visit google preferences directly, you might see a message that claims that your cookies are disabled, ignore that. it still works unless your cookies are actually disabled.



I updated the bookmarklet so now it works with Google new setting page.