您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Fetch unpublished geocaches
当前为
// ==UserScript== // @name Unpublished-Geocaches // @namespace http://www.geocaching.com // @description Fetch unpublished geocaches // @include http://www.geocaching.com/geocache/* // @version 1.1 // @grant GM_xmlhttpRequest // ==/UserScript== var d = document.getElementById('Download'); var m = d.children; var last = m.item(m.length - 1); var html = '<br /><input type="button" name="SendToUnpublishedGeocaches" value="Send to unpublished geocaches" id="SendToUnpublishedGeocaches" />'; last.innerHTML = last.innerHTML + html; var button = document.getElementById("SendToUnpublishedGeocaches"); button.addEventListener('click', function() { GM_xmlhttpRequest({ method: "POST", url: "http://unpublished.vaguelibre.net/gm.php", data: "content=" + encodeURIComponent(document.documentElement.innerHTML), headers: { "Content-Type": "application/x-www-form-urlencoded" }, onload: function(response) { var data = JSON.parse(response.responseText); if(!data.success) { alert(data.message); return false; } alert('Geocache added to your list!'); return true; } }); }, true);