Google Maps & Geode - Together At Last (gmap)

By Gil Margolin Last update Oct 17, 2008 — Installed 5,147 times. Daily Installs: 1, 1, 5, 5, 0, 4, 1, 5, 1, 4, 3, 2, 1, 0, 1, 5, 0, 4, 5, 1, 3, 1, 2, 0, 1, 1, 7, 0, 1, 3, 1, 1

There are 3 previous versions of this script.

// ==UserScript==
// @name          Google Maps & Geode - Together At Last (gmap)
// @namespace     http://margolin.org
// @description	  Allows you to set your current location as seen by Geode on the Google Maps at a single click, via a 'Current Location' link next to the search button.
// @author        Gil Margolin
// @homepage      
// @include       http://maps.google.com/*
// @include       https://maps.google.com/*
// @include       http://*.maps.google.com/*
// @include       https://*.maps.google.com/*
// @include       https://local.google.com/*
// @include       http://local.google.com/*
// ==/UserScript==
var optionSpan = document.getElementById("leaf_solink");
if(optionSpan != null)
{
		optionSpan.innerHTML = "<a href=\"javascript:void(0);\" onclick=\"navigator.geolocation.getCurrentPosition(function(pos) {document.getElementById('q_d').value = pos.latitude + ', ' + pos.longitude;document.getElementById('q_form').submit();}); \">Current Position</a> "  + optionSpan.innerHTML;
		
}