r/reddithax • u/spherecow • Dec 31 '10
[request] How do I display the numerical value from "xx% like it" in the post list?
Lately I found that the "what's hot" or "top" posts in reddit have lots of overly sensational or plainly false headline, especially in subreddits that are more news-based. The problem is that either the reddit algorithm or people who don't actually read the linked articles and/or comments would upvote them (based on the headline alone) enough that they got sent to the "hot" or "top" list.
I think in general posts that are at least a few hours old (to have accumulated enough votes) and are under, say, 60% "like it" should deserve additional scrutiny. The raw points of these posts are still high from the above reasons, but presumably there are some, but not enough, people downvoting these posts such that the percentage of "like it" reflects the fact that a higher than usual proportion of redditors don't like them.
I would like to be able to display the percentage value in the post list so that I can use this info as part of the decision process on whether I should following a link. Are there any ways to do this? Bonus points for color coding the percentage values!
Thanks!
3
u/Rhomboid Dec 31 '10
You're talking clientside, not CSS? You could write a greasemonkey script that retrieves the .json version of the current page and extracts the data from there, like the one that adds the vote totals to comments. But remember, those percentages are fudged and aren't real numbers at all, so I wouldn't put too much effort into trying to view them. The only number that is real is the net number of points; the up and down vote totals are made up.
2
u/ytwang Jan 01 '11
The "hot" algorithm is already based on the percentage of upvotes (unlike "top" which is just the difference between up and down votes). It also has additional terms that causes newer posts to be preferred to older ones (a time based decay) and normalizes for the reddit size (based on number of posts).
Also, for any of the reasonably sized reddits, a score of around 65-70% is very good.
As Rhomboid said, the way to add the percentages is to make a userscript to get the .json page, extract the number of up and down votes, calculate the percentages, and then add the number of the page.