Tom Andrews

Tom Andrews

Torrentz.com Ubiquity Command

After wanting to brush up on my JavaScript skills for a few weeks now I finally got round to writing a command for Ubiquity.

Ubiquity is a Firefox command project from Mozilla Labs that allows users to create mashups on the fly, giving them easy access to a number of great web applications there are on the internet. One of my favourite commands is the “define” that whilst I’m reading an article allows me to highlight the word and easily discover that words meaning without leaving that page/tab. I would urge Firefox users to check it out; it is one of the main reasons I haven’t moved over to using Opera as my main web browser.

My basic command allows a user to access results from the meta torrent search engine Torrentz.com. Within ubiquity you can easily see the top 5 results for your search based on the total number of peers (number of people uploading + number of people downloading) currently active for that torrent. It also shows some basic information like the age, size and the tags associated with a particular result. It gets this information by screen-scraping the Torrentz.com search page and displaying it nicely within the preview panel.

Below you can find a screen cast I created that would have been edited if I could find a usable piece of software to do it in Ubuntu! Also, there is a link to use if you have Ubiquity installed and wish to make use of the command.

If you wish to view the source code, with the understanding that this is version 1 (and while it works is not very elegant), click here.

Finally, if you have any comments about features or bugs please add them below and I will endeavour to respond promptly.