Skip to content

Instantly share code, notes, and snippets.

@filipsalomonsson
Created June 17, 2009 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipsalomonsson/131350 to your computer and use it in GitHub Desktop.
Save filipsalomonsson/131350 to your computer and use it in GitHub Desktop.
When someone links directly to a jpg on flickr, use this as a bookmarklet to get to the photo page
javascript:void(function(){n=parseInt((location.href.split("/").pop().split("_")[0]),10);s="";while(n>0){s="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"[n%2558]+s;n=Math.floor(n/58)};window.location="http://flic.kr/p/"+s;}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment