Tired of direct links to Flickr photos, when I’m unable to find the author, I decided to create my first (and really simple) bookmarklet for purpose of translating of Flickr photo ID into URL of photo page.
Here is the result, just click of drag to your favorites the following link: Flickr photo by ID
When clicked, bookmarklet will ask you photo ID. Just put it there and click OK – you’ll be redirected to Flickr photo page.
Here is few examples what is photo id (photo id is in bold):
http://www.flickr.com/photos/drug123/6283716332/
http://farm7.staticflickr.com/6104/6283716332_d7e5fbbb17_o.jpg
Code of bookmarklet for your convenience:
<a href="javascript:var photo_id=prompt('Please enter flickr photo ID',''); if (!photo_id) return(false); window.location='http://www.flickr.com/photo.gne?id=' + photo_id;return(false);">Flickr photo by ID</a>