Geocache to Flickr

By Absoblogginlutely! Last update Jun 18, 2009 — Installed 79 times.

There are 1 previous version of this script.

/*
Geocaching images on flickr - 0.31 17/06/2009
Copyright (c) 2005, Andy Helsby - http://absoblogginlutely.net/absocachinlutely
Released under the GPL http://www.gnu.org/copyleft/gpl.html

This is a Greasemonkey user script, see http://greasemonkey.mozdev.org/.

This adds a link to flickr images tagged with the cache name.
inspired,edited from an original taken from http://files.dixo.net/GeocachingMapLinker.user.js
*/

// ==UserScript==
// @name          Geocaching flickr images
// @namespace     http://absoblogginlutely.net/absocachinlutely/
// @description	  Links to flickr photos tagged with the same id as the cache id.
// @include       http://www.geocaching.com/seek/cache_details.aspx*
// ==/UserScript==


window.addflickrlink=function()
{
//add link to flickr via tag function
//<title>(GCH8TJ) In the shadow of the Tower by Cookiecachers</title>

	var titlepattern =new RegExp("GC[0-9A-Z]+");
	var cachename=document.title.match(titlepattern);

	//<span id="LogWarning">
	var warningFormat=document.getElementById("LogWarning");
	warningFormat.innerHTML= warningFormat.innerHTML  + '<a href="http://flickr.com/photos/tags/' + cachename + '">Flickr Photos</a>';
}
window.addflickrlink();