Short Flickr URL Bookmarklet

You can also shorten Flickr user's photostream URLs too, this is more straightforward, you just put http://flic.kr/ the URL alias (the bit that normally comes after /photos/ in the Flickr photostream URL) so for example, the shortcut for my photostream would be http://flic.kr/steeev

If you want to use the shortened photo URL with another service, you can use this alternative bookmarklet, which copies the shortened URL into the search box at the top right hand of the flickr page, which you can then copy and paste into the messaging service of your choice.

Source (steeev.freehostia.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Aif%2520%28location.href.match%28/flickr%5C.com%5C/photos/%29%29%7Bls%3Ddocument.getElementsByTagName%28%27link%27%29%3Bfor%28i%2520in%2520ls%29if%28ls%5Bi%5D.rev%3D%3D%27canonical%27%29%2520%7Bvoid%28_ge%28%27header_search_q%27%29.value%3Dls%5Bi%5D.href%29%7D%7D


Rate it:


Tags:

Comments

Comments so far. Add yours.

Prentiss Riddle

Be sure to read the fine print where it says the bookmarklet "copies the shortened URL into the search box at the top right hand of the flickr page." Before I saw that I thought it was busted since I was expecting the tinyurl/bit.ly behavior of opening a new tab.


pepelsbey

Your bookmarklet doesn't work in case of "void(_ge('.'))" i guess.
Here's the new version for modern browsers:

javascript:if(location.href.match(/flickr\.com\/photos/)){document.querySelector('#header_search_q').value=document.querySelector('#shorturl').href}