Screenshot of the GM script in action

Flickr - Link Original Image

linkoriginalimage.user.js - install as Greasemonkey User Script.

Update this script is now compatible with Creammonkey for Safari.

This Greasemonkey User Script looks for thumbnail images on most any photo page from Flickr and links these to their original uploaded versions. This also works for any page where thumbnails are displayed directly from the Flickr servers.

The script adds an icon, with text "Thmb", on top of thumbnail images. Clicking this link takes you directly to the original image index page on Flickr. Whenever this link is unavaliable (because the image was not linked), the icon shows "ORIG" and a click takes you to the full size version, as originally uploaded to Flickr.

Limitations

The script does not work with Ajax sites, which dynamically load images from the remote server. (Solved in version 1.10).

Sometimes a thumbnail links to a non-JPEG image, e.g. with screenshots, which commonly are in PNG format. There is no solution for this, as the thumbnail views are still JPEGS on the Filckr site. Just go to the original image page and follow the Other Sizes link there.

Changes

Version 1.10
	- Swapped Image link and thumbnail link (suggested by Sphere)
	- refactored repositioning method
	- added DOM event listeners to work with Ajax sites
	- now compatible with Creammonkey (0.6+) for Safari

Version 1.03
	- fix window resize
	- continuously recalculate link positions

Version 1.02
	- bugfix for FF 1.0x - thanks Antony den Dulk for pointing this out!

Version 1.01
	- much better link icon positioning (non W3C and with setTimeout
	  kludge, though)
	- added/edited a few more known flickr @include url's

Version 1.00
	- initial release
$Id: Link-original-image.html 57 2006-07-28 10:23:32Z joe $

About Greasemonkey

Greasemonkey is a Firefox extension, which can change web pages by applying cleverly crafted user scripts after they are loaded in the browser.

Tip! Greasemonkey Hacks by Mark Pilgim.

More Greasemonkey User Scripts

For more, and a couple of Greasemonkey resources, see Greasemonkey User Scripts.