// INFO // var INFO = Mitsugu Oyama MIT

You can get Google Maps URL of current machine location by this plugin.

'GoogleMaps' :gmap

You can get Google Maps URL of current machine location by this plugin.

See.

http://mozilla.jp/firefox/features/geolocation/ (Japanese)

https://developer.mozilla.org/Ja/Using_geolocation (Japanese)

; (function(){ commands.addUserCommand( ['gmap'], 'Get Google Map URL of current location', function(){ let strURL='http://maps.google.com/maps?ie=UTF8&q='; let Cc=Components.classes; let Ci=Components.interfaces; let geolocation=Cc["@mozilla.org/geolocation;1"] .getService(Ci.nsIDOMGeoGeolocation); geolocation.getCurrentPosition(function(position){ let strL=position.coords.latitude+','+position.coords.longitude; liberator.echo(strURL+strL); util.copyToClipboard(strURL+strL,true); }); } ); })();