Comment by kennywinker
14 years ago
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().
or even better, use 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).
And execute the first command just on $('div')