commit 2c76744b44a6fe7635b379937016fab85507ba3a Author: Michel ten Voorde Date: Sun Apr 13 20:31:36 2025 +0200 Initial commit diff --git a/GeoCoord/geocoord.user.js b/GeoCoord/geocoord.user.js new file mode 100644 index 0000000..ee915f3 --- /dev/null +++ b/GeoCoord/geocoord.user.js @@ -0,0 +1,32 @@ +/* global $: true */ +/* global unsafeWindow: true */ + + +// ==UserScript== +// @name Geocaching.com + GeoCoord +// @namespace geocoord +// @version 1.0 +// @author Michel ten Voorde (michel@tenvoorde.org) +// @description Add link to www.geocoord.nl on geocache pages +// @include http://www.geocaching.com/* +// @include https://www.geocaching.com/* +// @exclude https://www.geocaching.com/profile/profilecontent.html +// ==/UserScript== + + +(function() { + + 'use strict'; + + var geocoordURL = 'https://www.geocoord.nl/forum/index.php?action=search2&search='; + var path = window.location.pathname; + var gccode = $('#ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode').html(); + + if (window.top == window.self && + ( (path.match(/^\/geocache\/.*/) !== null) || + (path.match(/^\/seek\/cache_details\.aspx.*/) !== null))) { + + $('#ctl00_ContentBody_GeoNav_logButton').after('GeoCoord'); + } + +}()); diff --git a/GeoCoord/geocoord.user2.js.txt b/GeoCoord/geocoord.user2.js.txt new file mode 100644 index 0000000..1028b43 --- /dev/null +++ b/GeoCoord/geocoord.user2.js.txt @@ -0,0 +1,71 @@ + +Greasy Fork +Upquark [ Sign out ] Scripts Forum Help More +Info +Code +History +Feedback (0) +Stats +Derivatives +Update +Delete +Admin +GeoCoord +Add link to www.geocoord.nl on geocache pages + +Install this script? +Ask a question, post a review, or report the script. +/* global $: true */ +/* global unsafeWindow: true */ + + +// ==UserScript== +// @name GeoCoord +// @require https://greasyfork.org/scripts/38445-monkeyconfig/code/MonkeyConfig.js?version=251319 +// @namespace geocoord +// @version 1.3 +// @author Upquark (reboot@tenvoorde.org) +// @description Add link to www.geocoord.nl on geocache pages +// @include http://www.geocaching.com/* +// @include https://www.geocaching.com/* +// @exclude https://www.geocaching.com/profile/profilecontent.html +// @grant GM_getValue +// @grant GM_setValue +// @grant GM_registerMenuCommand +// @grant GM_addStyle +// ==/UserScript== + + +(function() { + + 'use strict'; + + var cfg = new MonkeyConfig({ + title: 'Configuratie Link naar GeoCoord', + menuCommand: true, + params: { + open_in_new_tab: { + type: 'checkbox', + default: false + } + } + }); + + var open_in_new_tab = cfg.get('open_in_new_tab'); + + var geocoordURL = 'https://www.geocoord.nl/forum/index.php?action=search2&search='; + var path = window.location.pathname; + var gccode = $('#ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode').html(); + + if (window.top == window.self && + ( (path.match(/^\/geocache\/.*/) !== null) || + (path.match(/^\/seek\/cache_details\.aspx.*/) !== null))) { + + if (open_in_new_tab) { + $('#ctl00_ContentBody_GeoNav_logButton').after('GeoCoord'); + } else { + $('#ctl00_ContentBody_GeoNav_logButton').after('GeoCoord'); + } + } + +}()); \ No newline at end of file diff --git a/GeoCoord/screenshot.PNG b/GeoCoord/screenshot.PNG new file mode 100644 index 0000000..bfcc10d Binary files /dev/null and b/GeoCoord/screenshot.PNG differ diff --git a/ToggleArchivedGeocaches/screenshot-1.PNG b/ToggleArchivedGeocaches/screenshot-1.PNG new file mode 100644 index 0000000..16db5b5 Binary files /dev/null and b/ToggleArchivedGeocaches/screenshot-1.PNG differ diff --git a/ToggleArchivedGeocaches/screenshot-2.PNG b/ToggleArchivedGeocaches/screenshot-2.PNG new file mode 100644 index 0000000..fa054c7 Binary files /dev/null and b/ToggleArchivedGeocaches/screenshot-2.PNG differ