diff options
author | mucek4 <tomaz@gorenc.org> | 2014-05-25 09:07:11 +0200 |
---|---|---|
committer | mucek4 <tomaz@gorenc.org> | 2014-05-25 09:07:11 +0200 |
commit | b64b3e02f74f440e1ba9cfcfc5099d7e62661c57 (patch) | |
tree | 6ebc42f0905c077366d643c8865231fcbc430e16 /send2cgeo | |
parent | 288273ab3e219064ea6e6fc6f3454262223d717d (diff) | |
download | cgeo-b64b3e02f74f440e1ba9cfcfc5099d7e62661c57.zip cgeo-b64b3e02f74f440e1ba9cfcfc5099d7e62661c57.tar.gz cgeo-b64b3e02f74f440e1ba9cfcfc5099d7e62661c57.tar.bz2 |
Fixed send2cgeo. Added https and download link
Diffstat (limited to 'send2cgeo')
-rw-r--r-- | send2cgeo/send2cgeo.user.js | 27 |
1 files changed, 15 insertions, 12 deletions
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</span></a> <br /> ' + var html = 'Log Visit</span></a>' + '<a class="lnk ui-block-b" ' - + 'href="http://send2.cgeo.org/add.html?cache={{=gc}}" ' + + 'href="https://send2.cgeo.org/add.html?cache={{=gc}}" ' + 'onclick="window.s2geo(\'{{=gc}}\'); return false;" ' + 'class="lnk">' + '<img src="/images/sendtogps/sendtogps_icon.png" ' @@ -77,7 +80,7 @@ s.textContent = '(' + function() { var GCCode = $('#ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode') .html(); - var html = ' | <input type="button" ' + var html = '<input type="button" ' + 'value="Send to c:geo" ' + 'onclick="window.s2geo(\''+GCCode+'\'); ' + 'return false;" ' @@ -100,6 +103,6 @@ s.textContent = '(' + function() { } } + ')();'; -// Inject Script. Can’t use jQuery yet, because the page is not +// Inject Script. Can't use jQuery yet, because the page is not // accessible from Tampermonkey document.getElementsByTagName("head")[0].appendChild(s); |