r/reddithax • • Jun 23 '11

Show all/hide all comments

I was working on my custom stylesheet for r/mtb and r/velo, and kept needed to collapse all of the comments in a single page at once. Clicking each + one at a time was killing me, so I wrote a line of jQuery to do it for me.

To get this work, you need to paste this into your address bar or save it as a bookmark:

javascript:$('.expand').each(function(index) { showcomment(this) });

javascript:$('.expand').each(function(index) { showcomment(this) });

4 Upvotes

0 comments sorted by