Get top comment(s) in Reddit thread

By thealchemist Last update Feb 22, 2012 — Installed 1,327 times.

Script Summary: Show top comments of a Reddit thread by clicking on the new 'top comment' link, right next to the 'share', 'save', 'report' buttons.



Show one or more top comments of a Reddit (www.reddit.com) thread by clicking on the new 'top comment' link, right next to the 'share', 'save', 'report' buttons, while browsing any subreddit. You can also hide the top comment by clicking on the 'hide top comment' link, located in the same position.

To change the number of comments shown, edit the 'nr_of_comments' variable in the source, located at the top. By default, 3 top comments are shown.

The top comments will vary based on your comment sort setting in your user preferences.

Feedback appreciated!

Update (24.01.2012): Thanks to mariod505's suggestion (thank you for your nice review!), this script now extracts more than one comment from the thread, and the number of comments extracted can be set by the user by editing the 'nr_of_comments' variable in the source!

Update (22.02.2012): Removed a certain CSS attribute and now there's no need anymore to scroll horizontally to view a whole comment. Thanks to joeysazo for the suggestion.
Also made the 'Loading...' text turn red when clicked.

Tested on:
Google Chrome 16.0.912.75
Firefox 9.0.1