Giter VIP home page Giter VIP logo

send2cgeo's Introduction

send2cgeo

send2cgeo is a Tampermonkey/Greasemonkey script for geocaching.com and opencaching.de, which allows you to send geocaches directly from your browser to c:geo on your phone. For more information, please visit the send2cgeo website.

Installation

Version management

Changes must be done on the master branch. Once the changes are validated and ready to release, they can be merged to the release branch. The script version number needs to be derived from the actual date of release and set accordingly in the scripts @version tag before that merge (it needs to be larger than the existing version number on release) to trigger a rollout automatically.

The script download link on the c:geo homepage as well as the update mechanism for the installed script directly targets the raw script on the release branch, which means after merging the changes to release, together with the required version number increase, users will see the update on the website and script hosts (e.g. Tampermonkey) will detect and notify users to update.

send2cgeo's People

Contributors

bananeweizen avatar bekuno avatar besthafr avatar budbundi avatar capoaira avatar cryptkid avatar fm-sys avatar friedrichfroebel avatar janbk avatar javajens avatar keyweeusr avatar kumy avatar lineflyer avatar michaelkeppleretas avatar mucek4 avatar rsudev avatar samueltardieu avatar triakcz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

send2cgeo's Issues

No "send2cgeo" functionality available on GC.com

I've installed the send2cgeo script on chrome (Version 79.0.3945.130) and registered browser and smartphone successfully. Script-Icon shows a running state during a visit of cache details. But I can't find any button or functionallity for "send2cgeo". If a cache is choosen on map, script (Version 0.46) seems to be not running.

Unbenannt
Unbenannt2

New send2cgeo release

Can someone enlighten me, whether master has a stable condition to merge it to release to trigger update on user side?
I have seen some commits, some issues, but missing the time to get the conclusion right now.

Browser registration lost after some time of inactivity

I do not use send2cgeo so often. And if I do not use it for longer time period, the browser registration is lost. I have to register my browser and phone again.

Is there any reason for having so short expiration time for 'browser_code' cookie? Only one month. Would it be possible to extend the expiration period of the cookie to one year or so? Thanks!

Remove PL script

Today I learned via an OC.DE discussion that at least OC.PL has a native send2cgeo functionality. We should therefore remove the PL script. Is there any good way to phase out a userscript? I'm thinking of

  • making users aware they can and should uninstall it
  • avoiding trouble with the update mechanism, if we delete it.

image

send2cgeoOC doesn't work

The script doesn't display the send2cgeo-button on the opencaching viewcache page (ff, 47.0.1).
Send2cgeo is not even executed if I visit the opencaching.de viewcache page (but Greasemonkey is active and the script is installed).
OC had supported https since Feb. 2016 but I thinks that's not the resason & only another problem?
See the report at the opencaching-forum: http://forum.opencaching.de/index.php?topic=4392.msg58927#msg58927

send2cgeo for opencaching.pl

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..:

// ==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 button
var s       = 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);

var map       = document.getElementById('cacheDetailsTemplate');
var d         = document.getElementById('Download');
var op        = document.getElementById('viewcache-baseinfo');

if( map != null )
{
    var html = '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);
}
else if( d != null )
{
    var m         = d.children;
    var last      = m.item(m.length-1);
    var GCElement = document.getElementById('ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode');
    var GCCode    = GCElement.innerHTML;

    var html = '| <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;
}
else if( op != null)
{
    var n         = op.children;
    var last      = n.item(n.length-1);
    var OPhtml    = op.innerHTML;
    var OPElement = OPhtml.match("wp=(.*?)&amp");
    var OPCode    = OPElement[1];

    var html = '<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;
}

Copied from original issue: cgeo/cgeo#1334

conflicts with project-gc script

From a facebook discussion: If both our script and the one from project-gc are installed, then the send2 button is sometimes missing. I can reproduce it.

Firefox and Chrome addon for send2cgeo

I've created a small addon for Firefox and Chrome. It make use of an extensions API called "page action" - basically it's an icon that when clicked will send cache do send2cgeo on supported websites.

I saw that there was attempts in the past to create such addon but it all settled on a userscript, but IMHO is some cases it might be easier to have a dedicated addon (like better support for browser APIs, no need to install Greasmonkey/Tampermonkey just for this script).

You can check it at https://github.com/prmtl/send2cgeo_addon. I've used c:geo icons and attached an information next to it that they came from c:geo and are licensed under Apache 2.0.

I would love to see your feedback.

Version 0.38 stopped working

It gives me this error in chrome console:
ERROR: Execution of script 'Send to c:geo' failed! Cannot read property 'children' of undefined

I temporarily fixed it by manually setting the variable premium to false (I deleted the block of code checking the status of membership)

send2cgeo Firefox add-on

From @JavaJens on August 2, 2013 12:32

Hi,

is there a reason why there is no Firefox AddOn?
The idea I have is to remove the need for Greasemonkey, as I find this to be cumbersome for novice users.

It would be fairly simple to do this, 5 lines with the AddOn builder and page-mod.
Though, one possible issue I see with this is the update mechanism, as for each change of the script the addon would need to be updated as well, but then Firefox would update the app automatically.

Furthermore I have one off-topic question, is the server side code for send2cgeo publicly available as well?

Looking forward for feedback.

Copied from original issue: cgeo/cgeo#3094

Upload 32x32 logo on website for use in send2cgeo

From @Bananeweizen on October 25, 2012 16:7

Greasemonkey scripts can have an icon. We currently use the high resolution image of the send2cgeo website which looks not that well in the addons list. Therefore we should have a 32x32 logo somewhere on the server and afterwards have the script point to that new image.

Copied from original issue: cgeo/cgeo#2116

send2cgeo for opencaching.de

From @rsudev on January 14, 2013 7:13

As we now can download oc.de caches directly, an adaption of send2cgeo for opencaching.de would be a good idea (as was mentioned in #1334)

Copied from original issue: cgeo/cgeo#2396

Version number from date?

Would it make sense to have a small gradle build script, that puts the current as version number? Similar to our app versioning scheme? That way we can "assemble" the script the same way we assemble all other components, and the version number surely is adapted without us forgetting it.

Suggestion - Self-hosting API

It would be good to self-host the Send2cgeo API, it would just need an option in the c:geo app and script to set a custom url

send2cgeo continuous/automatic fetch

From @jeancaffou on September 13, 2013 22:16

This is a feature request for send2cgeo:

The "Import from web" could run as a service in the background and fetch/refresh caches from send2cgeo automatically in the last used list where caches from send2cgeo were imported to.

This way we could have quick and seamless import of caches from the browser to the device.

There should of course be an option for this in the settings, so that cgeo wouldn't use too much mobile data for users with high data costs.

Copied from original issue: cgeo/cgeo#3273

The "send to c:geo" action isn't available in the gc map if the site is not in english

From @SnarkBoojum on October 10, 2014 15:13

I was using send2cgeo since a while, with everything working perfectly. Then I discovered I could have the site in english... and that half-broke send2cgeo: I still have the "send to c:geo" in each cache page, but not anymore on the short description mini-page when I click on a cache on the map.

I also checked that going back to english fixes the problem, and going to german makes it reappear, so it's really an i18n issue.

Copied from original issue: cgeo/cgeo#4411

send2cgeo - Stuck on multi cache import

Duplicating @bockyPT 's issue in the main cgeo repo cgeo/cgeo#6146 in case it's an issue with the script:

Detailed steps causing the problem:

- On my PC I added a bunch of caches to the "send2cgeo" import queue;
- On my Android 6 phone I tried to import them to a list;

Actual behavior after performing these steps:

It imported a lot of caches correctly, but is now stuck on cache GC11CPZ - maybe it's related to its name starting with a "#"?

Expected behavior after performing these steps:

Every cache should be properly imported.

Version of c:geo used:

2016.11.05

Is the problem reproducible for you?

Yes

System information:

Browser: Chrome 54.0.2840.71 m (64-bit)
Extension: Tampermonkey 4.1.10 with Send to c:geo 0.37
Phone: Xiaomi Redmi 3S Prime running Android 6.0.1 MMB29M (MIUI 8 Global 6.9.8 Beta)

injection in list view with doubled icon

On the initial list the send2cgeo icon is two times injected.
When the next caches are loaded the only one time.

See this screenshot:
the first line is the last rom from the initial load, the second row after scrolling down.

send2cgeo list view problem

Send to c:geo - Google store

From @CU8ER on August 10, 2013 19:48

Add send to c:geo script to Google store and Mozilla store.

It would be nice to add this script to these stores... it would be update automatically, users could write their reviewes, etc... mainly no problem with installing

for example GC little help is in the Google store too

Copied from original issue: cgeo/cgeo#3130

No buttons in new caches

When you scroll down to those ∙ ∙ ∙, no send2cgeo buttons are available in newly added caches.

image

Wording in send2cgeo iframe

"Browser not registrated" should be "Browser not registered".
"Registrated!" should be "Registered."
typo in "you can set a name fot it" (for)
typo in "was succesfully added" (missing "s" in successfully)

Send2cgeo load multiple caches on one click

From @triakcz on October 19, 2011 13:17

Hi, It'll be great when cgeo can load many caches on one click, it could be implemented same way as waypoint download from geocaching.com search results. If it is possible to add button there It'll be useful. Thanks I'm not so good in javascript so I had tryed but I can't do that.

Copied from original issue: cgeo/cgeo#689

Send2cgeo clean queue

From @triakcz on August 22, 2012 17:56

Hi,

today I had realised that it will be great when send2cgeo could be able to clean queue, by "magic button". I have two testing phones. And I had sent about hundred of caches via send2cgeo to one of them some time ago (about 4 days). When clicking import from web on the other one phone ... it was downloading the same hundred of caches and after them new added caches. There should be a possibility to clean that queue, because it is really time consument and sometimes uneccessarry to download caches to all users phones.

How this should be solved ? And how send2cgeo works ? What is the structure of queue storage ?

Copied from original issue: cgeo/cgeo#1985

Web interface for cache import

It would be great if there would be a web interface where you could enter manually a list of GC-codes (separated by comma or one code per line) that will be sent via send2cgeo to the c:geo app.
This way it would be easy to import external lists (e.g. created with the "Map Compare" tool of project-gc) into c:geo.

Thx,
Marcus

send2cgeo

Send2cgeo gives error:
https://send2.cgeo.org/add.html?cache=GC7TDHN werkt even niet, of de pagina kan verhuisd zijn naar een nieuw webadres.

translated: does not work now or the page is moved to a new webaddress

New chrome version
Google Chrome is up-to-date
Versie 74.0.3729.157 (Officiële build) (64-bits)

Combine send2cgeo scripts into one script

From @Lineflyer on June 11, 2015 10:10

I just recognized that we did not yet officially publish the send2cgeo script for OC.
While thinking about how to do that, I had the idea that there might be no need to have to seperate scripts but just one which triggers for both websites. Is that technically possible?

Having a combined script would minimize the effort (one version handling, one send2cgeo.html page on the website, etc.).

Copied from original issue: cgeo/cgeo#5025

confusion

There are three links from the send2cgeo homepage to the repo, 2 of them pointing to master, one to release. I guess they should all point to release?

Why is the script source duplicated in the root directory and the "chrome-extension" sub directory? I totally don't know which one to edit now. If the one in chrome-extension is deprecated, it should be deleted. If it needs to be there for building a chrome extension, then it should also be deleted, but a small ant script be added to copy it from the root directory.

Don't use cookies in send2cgeo

From @Lineflyer on August 9, 2012 19:30

From support mail:

For the send2cgeo – Userscript it is necessary to accept cookies. If the cookies are deleted (so in my case) I have to reconnect/reregistrate my browser and phone on your homepage before I use the script on the GC-homepage. The Greasemonkey-Project allows you to store some data in the browser (also after restart), so that you don’t need cookies!

Copied from original issue: cgeo/cgeo#1946

Release button fix for Opencaching.de

I sent a fix for the missing button on Opencaching.de some time ago which has been merged into the master branch in February.

During a discussion inside the Opencaching.de forum I got aware of the fact that I still has not been pushed to the release branch to fix the existing installations. Is there a special reason why this has not been done until today?

Split send2cgeo into a separate repository

From @Lineflyer on June 22, 2015 13:17

Taken from #5007:

Reason:
With the new webpage we link directly to mater on cgeo/cgeo repository.
Having a separate repository for send2cgeo would allow

  • Separate bugtracking
  • Having branches for release/master separate to c:geo app
    => Allowing a separate release management for the script without need for any other hosting,etc.

So, here would be my proposal:

  •  (Merge #5045 - if ready to merge)
  • Create a dedicated repository for send2cgeo in organization cgeo
  • Change @updateURL and @downloadURL in script on master
  • Change URLs on web page to release
  • Raise version number of script on master
  • Merge masterinto release
  • Place the new version of the script to the old URL https://send2.cgeo.org/send2cgeo.user.js for a last time

Will this work?
Who could support this by creating the new repo (this won't work easy with UI only).

Copied from original issue: cgeo/cgeo#5057

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.