|
this morning i noticed that gc.com updated the HTML a bit and GC Tour just produced errors when loading the .gpx -> 1st issue
Additionally it promts that i am not logged in, when i am on the listing page of a geocache. In the map it still recognizes me as logged in. -> 2nd issue
I solved the first issue right now and want you to know what you have to change in order to get it working again:
--- gc_tour.user.js 2011-10-07 09:55:21.539466211 +0200
+++ /home/cau/Downloads/36273.user.js 2011-10-07 10:54:57.824506219 +0200
@@ -3356,7 +3356,7 @@
- var cacheId = trim(document.getElementById('ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode').textContent);
+ var cacheId = trim(document.getElementById('ctl00_ContentBody_uxWaypointName').textContent);
td = document.createElement('td');tr.appendChild(td);
@@ -4561,7 +4561,7 @@
// locate the values and save it
- var cacheIdCode = document.getElementById('ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode');
+ var cacheIdCode = document.getElementById('ctl00_ContentBody_uxWaypointName');
var cacheId = trim(cacheIdCode.textContent);
// get the guid
@@ -5009,7 +5009,7 @@
cacheDetails.innerHTML = responseDetails.responseText;
// locate the values and save it
- var cacheId = trim(dojo.query('span[id="ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode"]',cacheDetails)[0].textContent);
+ var cacheId = trim(dojo.query('span[id="ctl00_ContentBody_uxWaypointName"]',cacheDetails)[0].textContent);
var guidId = dojo.query("a[id='ctl00_ContentBody_lnkPrintFriendly']",cacheDetails)[0].href.split("guid=")[1];
var cacheName = trim(dojo.query('span[id="ctl00_ContentBody_CacheName"]',cacheDetails)[0].textContent);
@@ -6890,7 +6890,7 @@
var geocache = new Object();
- geocache.gcid = trim(dojo.query('span[id="ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode"]',element)[0].textContent);
+ geocache.gcid = trim(dojo.query('span[id="ctl00_ContentBody_uxWaypointName"]',element)[0].textContent);
geocache.cacheid = trim(dojo.query('a[href*="/seek/log.aspx?ID="]',element)[0].href.split("=")[1]);
geocache.guid = dojo.query("a[id='ctl00_ContentBody_lnkPrintFriendly']",element)[0].href.split("guid=")[1];
geocache.name = trim(dojo.query('span[id="ctl00_ContentBody_CacheName"]',element)[0].textContent);
@@ -6974,7 +6974,7 @@
}
*/
geocache.difficulty = dojo.query('span[id="ctl00_ContentBody_uxLegendScale"] > img',element)[0].alt.split(" out of ")[0];
- geocache.terrain = dojo.query('span[id="ctl00_ContentBody_Localize12"] > img',element)[0].alt.split(" out of ")[0];
+ geocache.terrain = dojo.query('span[id="ctl00_ContentBody_Localize6"] > img',element)[0].alt.split(" out of ")[0];
geocache.size = trim(dojo.query('img[src*="/images/icons/container/"]',element)[0].alt.split(": ")[1]);
|