Re:Wikipedia blackout page
by teeray on Wednesday January 18, 2012 @12:23AM
(#3478060)
Wikipedia loads jQuery, so doing this works: https://gist.github.com/1631148
[ Parent
| on HN ]
Re:Wikipedia blackout page
by kennywinker on Wednesday January 18, 2012 @12:36AM
(#3478145)
Came up with almost exactly that
javascript:$('#mw-page-base, #mw-head-base, #content, #mw-head, #mw-panel, #footer').css('display','block'); $('#mw-sopaOverlay').css('display','none');
You beat me to it. :)Since you're using jQuery, you might as well just use show() and hide() or remove().
Re:Wikipedia blackout page
by WickyNilliams on Wednesday January 18, 2012 @05:29AM
(#3478927)
or even better, use toggle():
jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle();Also chaining: https://gist.github.com/1631368
I think that looks and scans worse. I didn't count characters, but it also seems like more characters. I bet it performs worse too (not that performance matters in this case).
Re:Wikipedia blackout page
by artursapek on Wednesday January 18, 2012 @02:45AM
(#3478535)
And execute the first command just on $('div')