Comments (12)
From @toze3 on June 25, 2012 14:8
Hi.
yes this could be a nice feature. Maybe a creation in the browser of lists, and then the option to import these list in C:GEO with automatic creation of lists or importing to a list with the same name.
Best regards
from send2cgeo.
I just had the need to send all caches of a country. The list is about 20'000 caches long. I used the new search-results page and the following script (which you might be able to integrate into the tampermonkey/greasmonkey script):
function loadCachesAndSubmit(currentStart) {
jQuery.get("https://www.geocaching.com/play/search/more-results?startIndex="+currentStart+"&inputOrigin="+resultsParams.inputOrigin+"&sortOrigin="+resultsParams.homeCoords+"&fbu=false&filteredByOtherUsersFinds=false&filteredByOtherUsersFindsUsername=&originTreatment="+resultsParams.originTreatment, function(data) {
jQuery("a[href*='http://www.geocaching.com/geocache/GC']", jQuery(data.HtmlString)).each(function() {
var cachenr = jQuery(this).attr("href").replace("http://www.geocaching.com/geocache/","");
jQuery.getScript("https://send2.cgeo.org/add.html?cache=" + cachenr);
});
if (data.ShowLoadMore) {
loadCachesAndSubmit(currentStart + 50);
}
else {
alert("Finished sending");
}
});
}
loadCachesAndSubmit(0);
from send2cgeo.
As @arminus was asking us if we could implement a batch transfer of caches in send2cgeo and maybe willing to implement it, we should think about publishing the server code into this repository as well?!
from send2cgeo.
AFAIK the server code needs a review and probably some refactoring before it can be made public. But it is almost 7 years old without any modifications. Maybe it is better to rewrite everything from scratch.
from send2cgeo.
Think is we moved our webpage to github. By the time we just disabled the old webpage but couldn't disable server code for send2cgeo. The main problem is core of webpage and send2cgeo is the same, so technically old webpage still has to be running in background for send2.
Basically send2cgeo needs to be re-written (parts could be copy-pasted)
from send2cgeo.
For future reference, I managed to do it, thanks to the hints from the posters above (thanks!), by opening Firebug (F11) on GC.COM and copy/pasting a line like the following into the Konsole
tab of Firebug:
jQuery.each(["GC4HNPP","GC5QK6Y", …, "OC1424A","OC14357","OC1438D"], function (k,v) { jQuery.getScript("https://send2.cgeo.org/add.html?cache=" + v); })
(I’ve shortened the line, just list all the caches you want there.)
Then, I ignored all console warnings. A proper webinterface would be more welcome, though, of course.
Individually clicking on hyperlinks like https://send2.cgeo.org/add.html?cache=GC6CXT96 also works, of course.
from send2cgeo.
Partially implemented with bff566f in version 0.45
from send2cgeo.
Doesn’t help my use case, as I never use the search page. At best the map, or I have a list of caches as text file.
But if it helps someone else… sure.
from send2cgeo.
I tried something. What do you think? @triakcz @mirabilos
With the link in the dashboard you can send a list of gccodes to c:geo.
https://github.com/capoaira/send2cgeo/raw/Send2cgeo-load-multiple-caches-on-one-click/send2cgeo.user.js
from send2cgeo.
I don’t use the dashboard, and this would only work for GC.COM users anyway.
I’d rather have it near the box on https://www.cgeo.org/send2cgeo.html as it’ll take a list of waypoint codes and therefore is independent of the platform.
from send2cgeo.
It would be not a problem to implement this feature also at OC. Or at https://www.cgeo.org/send2cgeo.html
It make no difference if you send a GC- or a OC-Code.
from send2cgeo.
Hello,
Since sending a GC code list has been requested many times, I implemented this feature today.
You can test the function here: https://github.com/capoaira/send2cgeo/raw/send-multi/send2cgeo.user.js
Here it goes back to the current version: https://github.com/cgeo/send2cgeo/raw/release/send2cgeo.user.js
How to use the function:
Click the "Send List" link. You can find this link on geocaching.com in the new and old dashboards under the renewal date and on opencaching.de at the top of your profile (https://www.opencaching.de/myhome.php).
Then a popup will open where you can insert your list and send it.
The seperator is irrelevant, it can be spaces, commas, line breaks, etc.
from send2cgeo.
Related Issues (20)
- Next release send2cgeo HOT 4
- Remove no longer used OC scripts from repo
- Add Owner Dashboard HOT 1
- Script crashed, if a cache have a comment
- Retrieve icon from website ressource HOT 3
- s2cg button doesn't appear immediately on new map
- Result window not visible HOT 2
- Send2cgeo release HOT 4
- support send2cegeo for more opencaching sites HOT 1
- Wrong place for s2cg Button on BML after changes by GS HOT 1
- Add "Send2cgeo" to right click menu of caches at the live map HOT 2
- The cookie "browser_code" will soon be rejected (firefox) HOT 4
- Columns are moved ugly on search page if member is a basic member. HOT 5
- Send2cgeo issue HOT 4
- S2cg does not work on new Results of Search Page
- not working on cgeo_legacy HOT 1
- Columns unaligned on owned caches list if website runs in Italian language HOT 1
- Support to edit/add waypoints, set personal notes from browser using send2cgeo HOT 3
- Session lifetime HOT 6
- autoTour from GCTour crashed because of c2cgeo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from send2cgeo.