Created
October 16, 2014 19:04
-
-
Save ElijahLynn/cb4f418e4869d0cbac6a to your computer and use it in GitHub Desktop.
Google Maps Directions Chrome Search Engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://jonthegeek.blogspot.be/2009/07/multi-parameter-firefox-keywords-and.html | |
javascript: | |
var s='%s'; | |
url='http://maps.google.com/maps?saddr=%s&daddr=%s'; | |
query=''; | |
urlchunks=url.split('%s'); | |
schunks=s.split(';'); | |
for(i=0; i<schunks.length; i++)query+=urlchunks[i]+schunks[i]; | |
location.replace(query); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment