News for hackers. Stuff that matters.

Wikipedia Unblackout Bookmarklet

As much as I support the blackouts, I have already contacted my representatives (though I think all the ones in the bay area are anti-SOPA). I think that earns me some Wikipedia time :). Turns out their blackout is just some CSS/JS added to the page (was probably the easiest way to implement it). This bookmarklet removes that (though it must be clicked on every page):

  javascript:(function(){$('#mw-sopaOverlay').hide();$('#mw-page-base, #mw-head-base, #content, #mw-head, #mw-panel, #footer').show();}())
Save that as a bookmark URL, click, and Wikipedia away on a non-mobile site.
( 6 comments | 11 points | on HN )
Re:Wikipedia Unblackout Bookmarklet by kmm on Wednesday January 18, 2012 @06:26PM (#3482404)
Wouldn't it have been easier for them to redirect everything to a static black page instead of overlaying this with fancy CSS magic? Not to mention the fact that every page still gets loaded before the banner pops up, which is not only visually jarring, but also puts completely unnecessary load on their servers. Doesn't serving content cost money?
Re:Wikipedia Unblackout Bookmarklet by tete on Friday January 20, 2012 @09:07PM (#3492283)
This was intended. The explanation even mentioned that you should turn off JavaScript or a mobile device if you really need Wikipedia.
Re:Wikipedia Unblackout Bookmarklet by dlitz on Wednesday January 18, 2012 @10:33PM (#3483097)
It was done this way on purpose.
Re:Wikipedia Unblackout Bookmarklet by popasmurf on Wednesday January 18, 2012 @05:57PM (#3482289)
Adapted:

  javascript:(function(){$('#mw-sopaOverlay').remove();$('div:hidden').show();}())
Re:Wikipedia Unblackout Bookmarklet by mhartl on Wednesday January 18, 2012 @11:27PM (#3483205)
This is a neat workaround, but you can just hit "escape" on any page to do the same thing.
Re:Wikipedia Unblackout Bookmarklet by fluxon on Thursday January 19, 2012 @07:42PM (#3487717)
Dang. Where was this on the 18th? I was checking HN all day.