You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as in latest nightly version searching/storing OC caches started to work fine, I'd like to ask for adding opencaching.pl site to official send2cgeo script. I modified it already myself for my own use and it works.. however I'm not much familiar with js (I only read few articles for gaining enough knowledge to make this work with opencaching.pl) so I believe there is a better way to do it. this is just my (so far working for both services) example..:
// ==UserScript==// @name sendToCgeo// @namespace http://send2.cgeo.org/// @description Add Send to c:geo button to geocaching.com// @include http://opencaching.pl/*// @include http://www.geocaching.com/seek/cache_details*// @include http://www.geocaching.com/map/beta*// @version 0.24// ==/UserScript==// Inserts javascript that will be called by the s2cgeo buttonvars=document.createElement('script');s.type='text/javascript';s.innerHTML='function s2cgeo(code) {'+'window.open(\'http://send2.cgeo.org/add.html?cache=\'+code,'+'\'cgeo\',\'height=50,width=50\'); }';document.getElementsByTagName("head")[0].appendChild(s);varmap=document.getElementById('cacheDetailsTemplate');vard=document.getElementById('Download');varop=document.getElementById('viewcache-baseinfo');if(map!=null){varhtml='Log Visit</span></a> <br /> '+'<a href="javascript:s2cgeo(\'${cache.gc}\');" '+'class="lnk">'+'<img src="/images/sendtogps/sendtogps_icon.png" '+'align="absmiddle" border="0"> '+'<span>Send to c:geo</span></a>';map.innerHTML=map.innerHTML.replace('Log Visit</span></a>',html);}elseif(d!=null){varm=d.children;varlast=m.item(m.length-1);varGCElement=document.getElementById('ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode');varGCCode=GCElement.innerHTML;varhtml='| <input type="button" '+'name="ctl00$ContentBody$btnSendTocgeo" '+'value="Send to c:geo" '+'onclick="s2cgeo(\''+GCCode+'\'); '+'return false;" '+'id="ctl00_ContentBody_btnSendTocgeo" />';last.innerHTML=last.innerHTML+html;}elseif(op!=null){varn=op.children;varlast=n.item(n.length-1);varOPhtml=op.innerHTML;varOPElement=OPhtml.match("wp=(.*?)&");varOPCode=OPElement[1];varhtml='<div class="send-to-gps"><input type="button" '+'name="ctl00$ContentBody$btnSendTocgeo" '+'value="Send to c:geo" '+'onclick="s2cgeo(\''+OPCode+'\'); '+'return false;" '+'id="ctl00_ContentBody_btnSendTocgeo" style="BACKGROUND: rgb(234,239,247); '+'BORDER-RIGHT: #005e9d 2px outset; BORDER-TOP: #000000 1px outset; '+'FONT-WEIGHT: bold; FONT-SIZE: 8pt; PADDING-BOTTOM: 2px; '+'BORDER-LEFT: #000000 1px outset; PADDING-TOP: 2px; '+'BORDER-BOTTOM: #005e9d 2px outset; FONT-FAMILY: verdana" /></div>';last.innerHTML=last.innerHTML+html;}
From @odl on March 25, 2012 9:15
as in latest nightly version searching/storing OC caches started to work fine, I'd like to ask for adding opencaching.pl site to official send2cgeo script. I modified it already myself for my own use and it works.. however I'm not much familiar with js (I only read few articles for gaining enough knowledge to make this work with opencaching.pl) so I believe there is a better way to do it. this is just my (so far working for both services) example..:
Copied from original issue: cgeo/cgeo#1334
The text was updated successfully, but these errors were encountered: