Comment by teeray 14 years ago Wikipedia loads jQuery, so doing this works: https://gist.github.com/1631148 7 comments teeray Reply 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. :) baddox 14 years ago Since you're using jQuery, you might as well just use show() and hide() or remove(). WickyNilliams 14 years ago or even better, use toggle(): jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle(); th 14 years ago Also chaining: https://gist.github.com/1631368 1 reply → artursapek 14 years ago And execute the first command just on $('div') Hrundi 14 years ago Truly concise and elegant. I'm not sure a code-golf could make that much shorter!
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. :) baddox 14 years ago Since you're using jQuery, you might as well just use show() and hide() or remove(). WickyNilliams 14 years ago or even better, use toggle(): jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle(); th 14 years ago Also chaining: https://gist.github.com/1631368 1 reply → artursapek 14 years ago And execute the first command just on $('div')
baddox 14 years ago Since you're using jQuery, you might as well just use show() and hide() or remove(). WickyNilliams 14 years ago or even better, use toggle(): jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle(); th 14 years ago Also chaining: https://gist.github.com/1631368 1 reply → artursapek 14 years ago And execute the first command just on $('div')
WickyNilliams 14 years ago or even better, use toggle(): jQuery("#mw-sopaOverlay, .noprint, #footer, #content").toggle();
Hrundi 14 years ago Truly concise and elegant. I'm not sure a code-golf could make that much shorter!
Came up with almost exactly that
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
1 reply →
And execute the first command just on $('div')
Truly concise and elegant. I'm not sure a code-golf could make that much shorter!