+The Southseakers Posted July 1, 2005 Share Posted July 1, 2005 (edited) LordElph's excellent GeocachingOSMaps script (see the Greasemonkey Thread) inspired me to do a little Greasemonkey-ing around of my own, so I started at the top of my wish list: 1) Wouldn't it be nice if cache pages had an OS map embedded in them instead of that "really useful" grey map that shows half of England... The resulting script will embed a 1:25000 OS map snippet on the cache page in place of the existing map with a small red circle displayed (very) approximately over the cache. The map is gleaned from the multimap web site and is linked to its original web page (so clicking on the map will take you to the relevant multimap page). Once again, this will only work for users of the Firefox browser with the Greasemonkey extension installed (see the above linked thread for details on how to install Greasemonkey). Once you have installed Greasemonkey, right click on the following link and select "Install User Script": GeocachingOSMapEmbedder.user.js Now go and visit a cache page.... Cool Huh? Before After The script has a few problems at the moment, but I've still found it very useful: 1) It only works for mainland Britain at the moment, although I am working on a European version for my next holiday.... 2) The small red circle can be very approximate on occasions, and should be used as a guide only to the whereabouts of the cache, rely on your GPS when you get close... 3) When printed out, the red circle becomes a black square, blocking out the map immediately around the cache (I don't want to make it too easy! ), although I'm working on this too. 4) When no map can be found, it would be nice to revert to the original GC map rather than displaying the blank square. Any other ideas for improvements, please let me know Edited to fix link to script Edited July 1, 2005 by The Southseakers Quote Link to comment
+lordelph Posted July 1, 2005 Share Posted July 1, 2005 (edited) Hey nice work! Not sure if it's just a temporary glitch with multimap but I couldn't get a map on this page Does it break Multimap's terms of service though In any case, it's a nice extension. Monkey power! (EDIT: maps working for me now!) Edited July 1, 2005 by lordelph Quote Link to comment
Lactodorum Posted July 1, 2005 Share Posted July 1, 2005 AWESOME!! I've no idea how this magic works but I love the results... Quote Link to comment
+Snosrap Posted July 1, 2005 Share Posted July 1, 2005 Really cool.. I'd somehow missed the original thread so I've gone through the whole process in the last half hour. I'm really impressed with these little tweaks. The thing I love about Firefox is that it works great on my Apple iBook as well as my PC. Love it. Quote Link to comment
NIghtFeeder Posted July 2, 2005 Share Posted July 2, 2005 Also works for the isle of Bute, no red circle though, but it gives a better detail of the area than any others I have tried and a good scale too, pure spot on. Quote Link to comment
+Team Maddie UK Posted July 2, 2005 Share Posted July 2, 2005 The technology keeps getting better.... Thanks for this Martin & Lynn Quote Link to comment
+Sensei TSKC Posted July 2, 2005 Share Posted July 2, 2005 Absolutely, marvellous!! Quote Link to comment
+Gralorn Posted July 2, 2005 Share Posted July 2, 2005 First time that I have changed a system and downloaded another to take its place, it all went like magic. Brilliant to say the least. The maps are certainly a lot better to look at. Thanks for that one. Can one have their own homepage, or does it have to be that Firefox start with the Google bar? Quote Link to comment
Lactodorum Posted July 2, 2005 Share Posted July 2, 2005 This means nothing to me but I wondered if this site might be useful to you Greasemonkey geeks out there Quote Link to comment
+lordelph Posted July 2, 2005 Share Posted July 2, 2005 this means nothing to me but I wondered if this site might be useful to you Greasemonkey geeks out there Anyone with a modicum of Javascript ability will find Dive Into GreaseMonkey a fantastic resource. Can one have their own homepage yes - visit your preferred page and go to Tools -> Options and click General in the left hand bar, and you'll see the option for home page there - click the "use current pages" button. Alternatively ,visit your chosen page, and see the icon next to the web address in the address bar? Probably looks like a blank page icon but might be a site-specific one? Drag and drop that onto the Home Page toolbar button. Quote Link to comment
+The Southseakers Posted July 2, 2005 Author Share Posted July 2, 2005 Thanks for all the positive feedback guys I'm working on some other stuff, so watch this space.... Neil. Quote Link to comment
+Sue and Bernie Posted July 3, 2005 Share Posted July 3, 2005 What a belter! These two monkeying about are really adding to the site - super work. Like Lacto, I too just marvel. How to go from Z80 machine code geek (Hail to Rodney Zaks) to amazed onlooker in 20 years! Trouble is, there are too many clever people out there and the call of the hammock and beer fridge it just too irresistable!!! Keep up the good work you two, we are all impressed.... and thank you. Quote Link to comment
+milvus-milvus Posted July 3, 2005 Share Posted July 3, 2005 Brilliant! Thanks lordelph. Quote Link to comment
+lordelph Posted July 3, 2005 Share Posted July 3, 2005 Brilliant! Thanks lordelph. That should be "Thanks Southseakers" ! He wrote the rather good map replacement extension, I wrote its predecessor, which links the OS coordinates to a 1:25000 map from Get-a-Map (it now includes an arrow for the cache coordinates too) Quote Link to comment
+milvus-milvus Posted July 3, 2005 Share Posted July 3, 2005 (edited) Brilliant! Thanks lordelph. That should be "Thanks Southseakers" ! He wrote the rather good map replacement extension, I wrote its predecessor, which links the OS coordinates to a 1:25000 map from Get-a-Map (it now includes an arrow for the cache coordinates too) Oops, sorry.. Thanks Southseakers! (it had been a long day...) Edited July 3, 2005 by milvus-milvus Quote Link to comment
+Turkey Trotter Posted July 4, 2005 Share Posted July 4, 2005 How to go from Z80 machine code geek (Hail to Rodney Zaks) to amazed onlooker in 20 years! Lol, I hear ya. I still have my 2 copies somewhere. Quote Link to comment
+Rebel Alliance Posted July 7, 2005 Share Posted July 7, 2005 Just so you are all aware Greasmonkey functionality can be disabled by website designers. document._createElement = document.createElement; document.createElement = function(tagName, password) { if (tagName != "SCRIPT" || password == "My scripts are OK!") { return document._createElement(tagName); } }; This stops the plugins working. I would expect advertisers to start using this soon to override all those cool scripts that have been written. Quote Link to comment
+Pharisee Posted July 7, 2005 Share Posted July 7, 2005 (edited) How to go from Z80 machine code geek (Hail to Rodney Zaks) to amazed onlooker in 20 years! Lol, I hear ya. I still have my 2 copies somewhere. You and me, both !!! I started with the somewhat restricted 8080 assembler instruction set and 'progressed' to Z80. Now I have trouble writing a macro for GSAK Edited July 7, 2005 by Pharisee Quote Link to comment
+zensunni Posted July 7, 2005 Share Posted July 7, 2005 This works well for me. Thank you very much Ken Quote Link to comment
+The Southseakers Posted July 7, 2005 Author Share Posted July 7, 2005 This stops the plugins working. Thanks for the info, it motivated me to a bit of checking up: The current version of Greasemonkey is immune to this particular trick. For those interested it seems that versions of Greasemonkey since 0.24 run scripts outside of the context of the DOM in their own environment and hence are not affected by mucking around with the document. There are other ways of stopping pages working with Greasemonkey (apparently) but these are far more difficult and involve server side mucking about. However even these problems are due to be fixed in the next version of the Monkey (0.34) - Monkey Power! How to go from Z80 machine code geek (Hail to Rodney Zaks) to amazed onlooker in 20 years! I started around the same time, cutting my first code on a friends home built ZX80 - if you couldn't do it in 1K of machine code it wasn't worth doing! and of course the screen went blank every time you ran any code..... Now it just goes blue! I just never stopped, and went on to make a career out of my hobby! Now I just have to find a way of doing that again..... Quote Link to comment
+Rebel Alliance Posted July 7, 2005 Share Posted July 7, 2005 I started on a ZX81 and had the luxury of a 16K RAM pack. Great, after spending 4 hours entering code a quick wobble & it was all gone. Happy days! Quote Link to comment
+Snosrap Posted July 7, 2005 Share Posted July 7, 2005 I still have my (home built) ZX80! Now worth a few quid I've been told. Not a heck of a lot of use for 'paperless caching' though! Quote Link to comment
+Sue and Bernie Posted July 7, 2005 Share Posted July 7, 2005 I just never stopped, and went on to make a career out of my hobby! That's the trouble, I already was making a career out of my hobby ('planes and joined the RAF). When digital computers came along, I was already up to my ears in OU and there just weren't the hours in the day! ....Ahh! The Hisoft Assembler, LERM - I remember them well, we had it tough.... and you tell the kids of today - they won't believe you! Quote Link to comment
+magicboy Posted July 7, 2005 Share Posted July 7, 2005 Abso-frickkin-lutely spot on. Just stumbled to this today, caught up with the other thread and have installed it all. Already a dedicated Firefox user, and this has made it even more worthwhile! Now, to get back to coding my Palm app that will combine GSAK, GPXSonar and SpoilerSync for us PalmOS users! All I have to do then is port Memory Map and I'm set! Quote Link to comment
+lordelph Posted July 7, 2005 Share Posted July 7, 2005 8080 assembly? ZX80s? Hisoft Assembler? Luxury! I started out with a Jacquard loom and paid mill owner for t' privilege... Quote Link to comment
+Snosrap Posted July 7, 2005 Share Posted July 7, 2005 LOOM - you were lucky to 'ave a Loom! We used to have to make clothing out of rocks we hammered flat wi' our 'eds. Quote Link to comment
+-Phoenix- Posted July 24, 2005 Share Posted July 24, 2005 bump, I beleive this is the answer to Skippy and Pingus problem (or at leat one of them ) Quote Link to comment
+Skippy and Pingu Posted July 24, 2005 Share Posted July 24, 2005 bump, I beleive this is the answer to Skippy and Pingus problem (or at leat one of them ) Yipee! Thanks Phoenix for pointing us in the right direction. We like this Quote Link to comment
+Moote Posted October 21, 2005 Share Posted October 21, 2005 (edited) Hello The Southseakers I have just come across this wonderful thread and what and incredible piece of work, this lead me into thinking that it would be nice to have a larger map when clicking on the substituted embedded map. I'm not sure if this has been mentioned before so forgive me if it has but here is how I have amended your script to allow for larger maps. The original section of the script which builds the Multimap looks like this: var multiMapUrl = "http://www.multimap.com/map/browse.cgi?client=public"+ "&X="+(Math.round(east/10000)*10000)+ "&Y="+(Math.round(north/10000)*10000)+ "&width=500&height=300&"+ "&gride="+east+ "&gridn="+north+ "&srec=0&coordsys=gb&db=pc&zm=1&scale=25000"; and buy altering the final line by adding &width=900&height=900 like so "&srec=0&coordsys=gb&db=pc&zm=1&scale=25000&width=900&height=900"; It is possible to get a map which gives you greater viewing area in the pop-up map, this I find gives superior cache finding powers I hope that you might include this in your wonderful script as I am sure all would love to see bigger Multimaps for an example of the size just click here I did not want to publish my modified script as I feel it is bad practice to not submit changes back to the author. Thanks Milton (aka Moote) Edited October 21, 2005 by Moote Quote Link to comment
+lordelph Posted October 21, 2005 Share Posted October 21, 2005 You could also merge my own extension with this one so that you popup an OS map at 1:25000 with a red arrow accurately highlighting the cache location. Southseakers I wonder if we should combine our efforts into one script to rule them all ? Quote Link to comment
+Moote Posted October 21, 2005 Share Posted October 21, 2005 Southseakers I wonder if we should combine our efforts into one script to rule them all ? Now that is a brilliant idea, but which one of you will look after the CVS ? Quote Link to comment
+Nellies Knackers Posted October 21, 2005 Share Posted October 21, 2005 All I have to do then is port Memory Map and I'm set! I have been working on a little gadget that does screen shot straight to palm hot-sync or sd card that is good for bits of memory map, you just hit one hotkey and insert a filename of your choice and it does the rest for you. Quote Link to comment
+Learned Gerbil Posted October 21, 2005 Share Posted October 21, 2005 (edited) Greasemonkey had died completly for me - it looks like the faulty Greasemonkey update process is the culprit - this fixes it - · Shut down Firefox. · Find your profile directory · Move profileDir/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781}/chrome/ greasemonkey/content/scripts/ to profileDir/scripts. · Remove profileDir/gm_scripts if it exists · Rename profileDir/scripts to profileDir/gm_scripts · Restart Firefox Edited October 21, 2005 by Learned Gerbil Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.