aboutsummaryrefslogtreecommitdiffstats
path: root/send2cgeo
diff options
context:
space:
mode:
authorLars <gc@droescher.eu>2013-06-13 21:57:30 +0200
committerLars <gc@droescher.eu>2013-06-13 21:57:30 +0200
commitb9338748e7093eb5be950127c0a40a95c91e13d7 (patch)
tree268580553ef1ae786060834cd94ea3fc13631911 /send2cgeo
parent76f59b8a23b64ac737259f57319c87b3016d80a7 (diff)
downloadcgeo-b9338748e7093eb5be950127c0a40a95c91e13d7.zip
cgeo-b9338748e7093eb5be950127c0a40a95c91e13d7.tar.gz
cgeo-b9338748e7093eb5be950127c0a40a95c91e13d7.tar.bz2
Workaround for #2851
I inserted the include option for the new (temporary?) cache detail page and added an append command for the dd tag which is used instead of a p tag in the new cache page. I know that the append is called twice in this case. Maybe someone can optimize it but it has shown no side effects at tests with both URLs.
Diffstat (limited to 'send2cgeo')
-rw-r--r--send2cgeo/send2cgeo.user.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/send2cgeo/send2cgeo.user.js b/send2cgeo/send2cgeo.user.js
index b309b58..bd20f3a 100644
--- a/send2cgeo/send2cgeo.user.js
+++ b/send2cgeo/send2cgeo.user.js
@@ -4,9 +4,10 @@
// @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/*
// @icon http://send2.cgeo.org/content/images/logo.png
// @updateURL http://send2.cgeo.org/send2cgeo.user.js
-// @version 0.26
+// @version 0.27
// ==/UserScript==
// Inserts javascript that will be called by the s2cgeo button. The closure
@@ -81,6 +82,7 @@ s.textContent = '(' + function() {
+ '/>';
$('#Download p:last').append(html);
+ $('#Download dd:last').append(html);
}
} + ')();';