Lolrus.org
This is a header that goes on every page.Greasemonkey and Craig's List
February 11, 2007 at 02:02 PM | categories: Computer | CommentI've been searching for an apartment on Craig's List lately near where I am probably getting an internship.
A couple things I notices is that the google maps link on the pages often were bad because they used "at" instead of "&" and google maps likes the ampersand more it seems. Also, I always changed it to a direction search to a specific address. Inefficient, right?
I was bored this morning and I realized that this was a job for Greasemonkey. I'm not super good at javascript (because I never have to use it), but I hacked together a script that would turn the links to the google maps into a link to a link to directions to the location you defined in the script.
It's not super robust, but it does the job. Here's what you need to run it.
- Firefox
- Greasemonkey add-on for firefox
- My script
- You'll have to edit one line in the script where it says "Destination Here" and replace with a location (you pretty much have to search for the location once with google maps and paste the url) example:1+lomb+memorial+drive,+rochester,+ny