Reddit Uppers and Downers

By mistercow Last update Jun 2, 2009 — Installed 5,286 times. Daily Installs: 15, 18, 4, 16, 14, 7, 10, 8, 10, 6, 23, 5, 9, 19, 9, 2, 17, 9, 6, 16, 6, 5, 11, 7, 10, 10, 2, 5, 8, 14, 7, 10

Add your review

2 reviews


1 star
Script is horrible. Use this instead. , Sep 1, 2009
Review written by timecube22 - see all my reviews (1)

From http://www.reddit.com/r/javascript/comments/9dn...
--
// ==UserScript==
// @name Reddit Up/Down CSS
// @namespace tritelife
// @include http://*.reddit.com/*/comments/*
// ==/UserScript==

var $ = unsafeWindow.jQuery;
$.getJSON(location.href+".json",null,function(r){
var css = [];
var searcher = function(comments) {
comments.forEach(function(comment){
css.push(['.comment.id-t1_',comment.data.id,' > div > div > p.tagline:after,.comment.id-t1_',comment.data.id,' > div > .collapsed:after{font-style:normal;content:\'(',comment.data.ups,' upvote',(comment.data.ups==1 ? '':'s'),', '+comment.data.downs,' downvote',(comment.data.downs===1 ? '':'s'),')\'}'].join(''));
if(typeof(comment.data.replies) === 'object') searcher(comment.data.replies.data.children);
});
};
searcher(r[1].data.children);
GM_addStyle(css.join(''));
});

0 comments |

5 stars
Much better than commentoversy , Jun 30, 2009
Review written by kernel26 - see all my reviews (1)

This script displays the up and down scores neatly and much faster than reddit commentoversy.

Very good script, highly recommended!

0 comments |