你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/393186-geocaching-com-geocoord,源站連結 點此以跳轉

Geocaching.com + GeoCoord

Add link to www.geocoord.nl on geocache pages



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/393186/Geocachingcom%20%2B%20GeoCoord.user.js

安装此脚本?
作者
Jo Biermans
日安装量
1
总安装量
567
评分
1 0 1
版本
1.1
创建于
2019-12-01
更新于
2019-12-01
大小
1.8 KB
许可证
暂无
适用于

/* global $: true */
/* global unsafeWindow: true */


// ==UserScript==
// @name Geocaching.com + GeoCoord
// @require https://greasyfork.org.cn/scripts/38445-monkeyconfig/code/MonkeyConfig.js?version=251319
// @namespace geocoord
// @version 1.1
// @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');
}
}

}());