chester's blog

technology, travel, comics, books, math, web, software and random thoughts

u.nu URL shortener bookmarklet

05 Feb 2010 | Comments

Unfortunately, u.nu ceased to exist as an URL shortener,
but I decided to keep the article as a curiosity.

A URL shortener like TinyURL or bit.ly is a handy tool on these Twitter times. But even shortened URLs from those services can get a bit too long when you are on tight spots.

Enter u.nu, arguably the shortest URL shortener in town – which, unfortunately, does not come with a one-click shortening option like bit.ly’s bookmarklet. It does, however, offer an API, with which I quickly hacked a minimalistic bookmarklet.

Just drag and drop the link below to your browser and turn anything in your browser into a short URL with a single click:

<a href="javascript:location.href="'http://u.nu/unu-api-simple?url='+escape(location.href);"" id="a_unu">u.nu</a> <- drag that to your browser’s toolbar.

UPDATE: Real stupid mistake – forgot to escape the URL (but hey, I told it was a quick hack :-P ) – fixed now (Feb 9, 2010).

Comments