combovercool
08-31-2009, 05:21 AM
After watching Tekzilla daily #429 I decided to whip up a little bookmarklet that extracts the photo id and pops it into "http://flickr.com/photo.gne?id=". This is my first bookmarklet, and I've not too familiar with regular expressions so keep that in mind if you run into problems.
To use it copy the code below into a new bookmark. Then paste in the location of the Flickr image into your location bar and navigate to it. After that run the bookmarklet and it'll take you to that users Flickr page. Enjoy! (Update: this only works in Firefox for the moment)
javascript:re=/%5B%22http://%22%5D%7B1,7%7D%5Ba-z%5D%7B1,4%7D%5B0-9%5D%5Ba-z%22.%22%22/%22%5D%7B1,19%7D%5B0-9%5D%7B1,%7D%5B%22/%22%5D%7B1,1%7D(%5B0-9%5D%7B1,%7D)%5B%22_%22%5D%7B1,1%7D%5Ba-z0-9%22_%22%5D%7B1,%7D%5B%22.%22%5D%7B1,1%7D%5Ba-z%5D%7B1,%7D/;url=window.location.href;f=url.replace(re,%22$1%2 2);window.open(%22http://flickr.com/photo.gne?id=%22+f);
To use it copy the code below into a new bookmark. Then paste in the location of the Flickr image into your location bar and navigate to it. After that run the bookmarklet and it'll take you to that users Flickr page. Enjoy! (Update: this only works in Firefox for the moment)
javascript:re=/%5B%22http://%22%5D%7B1,7%7D%5Ba-z%5D%7B1,4%7D%5B0-9%5D%5Ba-z%22.%22%22/%22%5D%7B1,19%7D%5B0-9%5D%7B1,%7D%5B%22/%22%5D%7B1,1%7D(%5B0-9%5D%7B1,%7D)%5B%22_%22%5D%7B1,1%7D%5Ba-z0-9%22_%22%5D%7B1,%7D%5B%22.%22%5D%7B1,1%7D%5Ba-z%5D%7B1,%7D/;url=window.location.href;f=url.replace(re,%22$1%2 2);window.open(%22http://flickr.com/photo.gne?id=%22+f);