Evil Reddit Javascript Code
Reddit.com is a user community where people share new ideas and insightful commentary. Nah, just kidding – it’s just a website where you can find links to certain mob-approved topics. If you’re so inclined,you can even argue with and insult other people over those links. Ain’t the internet grand?
One silly feature of Reddit is the “karma” feature, where uses can vote a topic or comment “up” or “down” based on their opinion of the topic, the commenter, the commenter’s mom, or even the commenter’s command of the English language. At first, this might sound like a good idea. After all, if something is useful or insightful, it will then garner a lot of votes, right?
Wrong. In practice, what really happens is that anyone who disagrees with your viewpoint will vote your comment “down” for any reason at all, thus ensuring that differing viewpoints are never heard or considered. For instance, say you posted that you kind-of liked Microsoft’s new search engine “Bing,” and stated that its map feature had a couple of innovative ideas. Well you’d be instantly voted down by people who hate Microsoft, by geeks that love Google, by denizens that worship Apple, by GPS-fanatics, and people who just don’t care. You’ll garner just a few measly “upvotes” from people who might have had a chance to read your comments before they were down-voted to internet oblivion. Ain’t the internet grand?
And that’s if you’re lucky. If you’re unlucky, the disagreeing party will go through all of your past comments and vote them all “down,” thus ruining your “karma” score and decreasing your standing on the site.
In the end, it’s a pretty silly system.
So, here’s a little code that will help send that message:
Downvote every comment on a page:
javascript:(function f(){var u=$(".down");if(u.length-1){setTimeout(f,100);u[1].onclick()} })()
Upvote every comment on a page:
javascript:(function f(){var u=$(".up");if(u.length-1){setTimeout(f,100);u[1].onclick()} })()
Just paste the above code into your browser’s location bar and it will either upvote or downvote every comment on a page.
Ain’t the internet grand?


September 22nd, 2010 at 3:54 pm
Nice! However, the votes don’t seem to retain. If you refresh, the votes were never persisted to the Reddit servers.
February 15th, 2011 at 8:35 pm
Need to use timeout of 1000 instead of 100 otherwise votes do not get posted.
September 27th, 2011 at 6:36 pm
“If you’re unlucky, the disagreeing party will go through all of your past comments and vote them all “down’”
Those votes don’t count towards your total.
If you care about karma that much, maybe Reddit isn’t for you
And you do realize that people have different opinions that you do, right? So, some people abuse the voting scheme. Big deal.
October 30th, 2011 at 8:14 pm
To “redditor”:
I think you meant “If you care about whether content is interesting, maybe Reddit isn’t for you”
November 14th, 2011 at 11:39 am
they didnt stick :/