GreaseMonkey script: MyLocations for Google Maps
This script is totally outdated and you can find much better out there… removing download…
Update 3 (2nd August 2005): it works again! Provided that you install GreaseMonkey 0.5 beta. Tested with Firefox 1.0.6 (but not DeerPark Alpha 2 yet). Note that address file cannot be local any longer. Put it up on your web server.
Update 2 (19th July 2005): everyone is strongly encouraged to install the “neutered” 0.3.5 release of GreaseMonkey. This will break my script that was using the GM_* functions, but it’s safer this way. And it is only a temporary measure waiting for the GreaseMonkey folks to release a proper fix.
Update (19th July 2005): this script will probably have to be revised with the upcoming Firefox release - and that’s for the best. I was surprised to see how easy it was to read an arbitrary file from disk, even though it wasn’t even in the chrome. It appears that this is actually due to a recently identified security flaw. So stay tuned, I will update the script once I get my hands on the new Firefox (1.0.6). Note that updating the URL to point to an address file hosted on a website (ex: http://www.my-own-web-site.com/addresses.xml) instead of a local file will probably be the long-term solution.
I had to try to write a GreaseMonkey script - so here’s my first attempt. Strangely enough, it doesn’t look like such a script already existed.
Considering some of the projects incubating in the Google labs, this script is probably short-lived. But in the meantime, it brings the convenience of Yahoo Maps to the slick Google Maps - you can finally do “map from HOME to this address”, without having to type your home address each and every time (yes, I know that the auto-completion is neat, but that doesn’t beat a drop-down menu, IMHO).
The script does two main things:
- gets you straight to the directions form
- gives you some drop-down menus, populated with pre-saved addresses from a config file
So it will turn your regular Google Maps page from:

To:

Let me know how this works for you.
Download links:
MyLocations.user.jsthe scriptaddresses.xml, an example of a preference file
(those of you not familiar with GreaseMonkey should head straight to this great introduction.)