Copy Short URL Add-on
This week during the Mozilla Summit in Whistler, British Columbia, there was a “Rocket Your Firefox” Jetpack contest: The idea, make a new add-on using the Jetpack SDK, submit it, win a prize.
So I went ahead and made a jetpack called “Copy Short URL” and it does what it sounds like:
On any webpage, you get a new item in the right click menu called “copy short URL”. When you click it, the add-on looks for a canonical short URL exposed in the page header. Currently, a number of major websites expose their own short URLs for any entry on their webpages, among these: youtube (“youtu.be/…”), flickr (“flic.kr/…”), Arstechnica, Techcrunch, and many more.
If, however, the site does not name its own short URL, the add-on automatically falls back to making a short URL using tinyurl.com.
Either way, after a fraction of a second, you end up with a short URL in your clipboard, ready to be used in forum posts, tweets, or wherever else you please.
My add-on won the contest in the “most useful” category. The prize was an awesome jetpack sweatshirt:


If you want to check out the add-on, it is currently available (open source, of course) on the add-ons builder website. However, due to the positive feedback I received, I might also upload it to AMO shortly. I’ll update this blog post when I do.
Hope you find it useful!




