From b64b3e02f74f440e1ba9cfcfc5099d7e62661c57 Mon Sep 17 00:00:00 2001 From: mucek4 Date: Sun, 25 May 2014 09:07:11 +0200 Subject: Fixed send2cgeo. Added https and download link --- send2cgeo/send2cgeo.user.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'send2cgeo') diff --git a/send2cgeo/send2cgeo.user.js b/send2cgeo/send2cgeo.user.js index 3a7f6c7..afb54c4 100644 --- a/send2cgeo/send2cgeo.user.js +++ b/send2cgeo/send2cgeo.user.js @@ -2,14 +2,17 @@ // @name Send to c:geo // @namespace http://send2.cgeo.org/ // @description Add button "Send to c:geo" to geocaching.com -// @include http://www.geocaching.com/seek/cache_details* -// @include http://www.geocaching.com/map/* -// @include http://www.geocaching.com/geocache/* -// @include http://www.geocaching.com/my/recentlyviewedcaches* -// @include http://www.geocaching.com/seek/nearest* +// @grant none +// @include /^https?://www\.geocaching\.com/seek/cache_details.*$/ +// @include /^https?://www\.geocaching\.com/map/.*$/ +// @include /^https?://www\.geocaching\.com/map/.*$/ +// @include /^https?://www\.geocaching\.com/geocache/.*$/ +// @include /^https?://www\.geocaching\.com/my/recentlyviewedcaches.*$/ +// @include /^https?://www\.geocaching\.com/seek/nearest.*$/ // @icon http://send2.cgeo.org/content/images/logo.png -// @updateURL http://send2.cgeo.org/send2cgeo.user.js -// @version 0.29 +// @downloadURL https://send2.cgeo.org/send2cgeo.user.js +// @updateURL https://send2.cgeo.org/send2cgeo.user.js +// @version 0.30 // ==/UserScript== // Inserts javascript that will be called by the s2cgeo button. The closure @@ -29,7 +32,7 @@ s.textContent = '(' + function() { $('#send2cgeo iframe') .hide() .unbind('load') - .attr('src', 'http://send2.cgeo.org/add.html?cache='+code) + .attr('src', 'https://send2.cgeo.org/add.html?cache='+code) .load(function() { // hide "please wait text" and show iframe $('#send2cgeo div').hide(); @@ -62,9 +65,9 @@ s.textContent = '(' + function() { if(map !== null) { // geocaching.com map view - var html = 'Log Visit
' + var html = 'Log Visit' + '' + '