Saturday, March 10, 2012

My first bookmarklet: Flickr photo page by photo ID

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):

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='' + photo_id;return(false);">Flickr photo by ID</a>

No comments:

Post a Comment