Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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().



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).


or even better, use toggle():

    jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle();


And execute the first command just on $('div')




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: