Reddit Highlight Top Comments

By DrAsstdHomicide Last update Jan 20, 2010 — Installed 122 times.


Script Summary: Highlights the top comments on a reddit article.

I wrote this script mostly for my own use but it turned out good enough that I figured that I would put it up here. I based the code loosely on the script located here: http://userscripts.org/scripts/show/43882

Here is a screenshot of what the top comments look like when they are highlighted:

The math here is really lazy as you can see if you look at the code but I figured that for what the math is used for it doesn't need to be much more complicated.

Best Score - (Second Best / 1.33) : Anything past this value is a "top comment" and gets highlighted.

Keep in mind that the number of comments determines how long the script takes to run as it has to go through each comment and get the score and then apply the new style. In other words, for articles with 1000+ comments, expect to wait a few extra seconds.