Ah, and I just realized,
instead of using the Console in the Developer Tools (which is slightly awkward to do repeatedly),
you could in fact create a bookmarklet for this.
All you have to do is create a new bookmark on your browser's bookmark toolbar, and put this as the URL of the bookmark:
javascript:$('.spoilers').removeClass('spoilers').css('background','lightgray');
Or if you don't even want light gray highlighting, put this as the URL of the bookmark:
javascript:$('.spoilers').removeClass('spoilers');
Now, you essentially have a 'button' on the bookmark toolbar
such that when you click on it, it will unhide the spoilers on the current page.
(Edit: Fixed.)
Oh gosh, this is way better. Thank you again! (I simply like to go back and read the conversations sometimes, so this makes it ridiculously more convenient :) )
Agreed! Very cool!
I found on my version of Firefox it doesn't work unless it's inside a named function.
javascript:function show(){$('.spoilers').removeClass('spoilers');} show();
or
javascript:function show(){$('.spoilers').removeClass('spoilers').css('background','lightgray');} show();
last edited at Mar 22, 2015 3:22PM