From b9338748e7093eb5be950127c0a40a95c91e13d7 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 13 Jun 2013 21:57:30 +0200 Subject: 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. --- send2cgeo/send2cgeo.user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'send2cgeo') 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); } } + ')();'; -- cgit v1.1