magma1447 / greasemonkey-geocaching-projectgc

Adds links and data to Geocaching.com to make it collaborate with Project-GC.com
MIT License
18 stars 14 forks source link

make the pgc stuff look somewhat sane with updated layout. Fixes #64 #65

Closed sdahlbac closed 6 years ago

sdahlbac commented 6 years ago

After:

image

Known issue:

magma1447 commented 6 years ago

Much appreciated that you want to solve this. I haven't even looked at it myself yet, though I have noticed the irritating issues.

I tried it in both Chrome and Firefox, and it didn't really work out, see attached screenshot. The "PGC-menu" gets quite broken. Also it's triggered by clicking the "GCCOM menu" as well. I haven't yet investigated why. Since I can see it works for you (your screenshot) I am a bit confused. I'll see if I get some time to look at it.

I tested with https://github.com/sdahlbac/greasemonkey-geocaching-projectgc/raw/a9a3155051415de603e90122e4bdff16bb29c90b/greasemonkey-geocaching-projectgc.user.js

screenshot_20170911_11 08 52_cfd

magma1447 commented 6 years ago

While working on something else, I noticed that your patch works on a cache-page. Seems like the menu has to be generated differently depending on which page we are on. It was a bit like that before as well. In fact, it has always been a bit broken on some of their pages, but less broken than it is now.

sdahlbac commented 6 years ago

Ah, did not occur to me that it might behave differently on different pages :(

I'll see if I can gather the energy to get this fixed for reals in a new PR.

By the way, how is one supposed to develop user scripts efficiently, so far I've been doing select all in my editor and paste into Greasemonkey, but that can't be the best way (or at least so I hope...)

magma1447 commented 6 years ago

I knew it from experience. Have been fighting it before. Also I happened to test your patch on /, which is the search page, which didn't work. :)

If you didn't notice, I did accept your PR and added a few fixes for other pages after that. I did not get the settings page to work though, issue #66. I have not yet made a new version release, waiting a few days to see if someone else tests it and finds something that's worse than before.

I am using Firefox when developing the userscript, I then open Firefox's file where it has it stored. I am a linux user and it's stored in ~/.mozilla/firefox//gm_scripts/ Githubissues.

  • Githubissues is a development platform for aggregating issues.