Bulk Vote for Reddit, Digg, and Hacker News


Update: Ok, so this is more of an issue than I originally surmised – apparently it violates the Terms of Service on a couple sites, especially Digg. I’ve removed Digg support and may have to take the script down at some point. Sorry everyone!


Last weekend I decided to play around with the new Ubiquity extension for Firefox, building a command.

The command is called ‘vote’ and it gives you the ability to bulk vote on links and comments on Digg, Reddit, and Hacker News.

I’ve created a short screencast that shows it in use:


Ubiquity Vote Command

Here are the commands available on the sites that it supports:

Digg

  • vote up – Works on stories and comments that haven’t been voted on.
  • vote down – Works on comments that haven’t been voted down.
  • vote fave – Works on stories that you’ve already voted up.
  • vote bury – Works on all stories.

Reddit

  • vote up – Works on stories and comments that aren’t already voted up.
  • vote down – Works on stories and comments that aren’t already voted down.
  • vote none – Resets the vote of stories and comments that have already been voted on.
  • vote hide – Hides stories from view.

Hacker News

  • vote up – Works on stories and comments that aren’t already voted up.

Each of the commands have a number of filtering aspects that can be used:

  • vote up WORD – Performs the vote on all stories or comments that match WORD (comments will also match the name of the comment author). For example: vote up google
  • vote up REGEXP – Performs the vote on all stories or comments that match the REGEXP regular expression. For example: vote up hadron|youtube
  • vote up WORD not OTHER – Performs the vote on all stories or comments that match WORD and does not match the word OTHER. For example: vote up google not chrome

Ubiquity is a lot of fun to develop for. There’s a real-time command editor (run the command ‘command-editor’ to bring it up) which makes development quite fast. It also includes native jQuery support (which is a huge plus for me).

In a lot of ways I see Ubiquity as being a solid replacement for Greasemonkey and bookmarklets. It’s far simpler and will make their execution much more flexible. I’ll be curious to see what people end up doing with it, in the upcoming months.

Posted: September 4th, 2008


Subscribe for email updates

7 Comments (Show Comments)



Comments are closed.
Comments are automatically turned off two weeks after the original post. If you have a question concerning the content of this post, please feel free to contact me.


Secrets of the JavaScript Ninja

Secrets of the JS Ninja

Secret techniques of top JavaScript programmers. Published by Manning.

John Resig Twitter Updates

@jeresig / Mastodon

Infrequent, short, updates and links.