GMap2UPC
by
kik0220
2015-02-26 [2015/02/26 11:42:30]
Googleマップで開いている場所をIngress UPC Reports Mapで開きます。
@@ -8,6 +8,6 @@
(function(){
var u = document.location.href;
- var l = u.match(/\/@([\d\.]+),([\d\.]+),/);
+ var l = u.match(/\/@([-\d\.]+),([-\d\.]+),/);
open('http://rank-info.net/ingress/ingressupcmap.html?lat=' + l[1] + '&lon=' + l[2]);
})();
/*
* @title GMap2UPC
* @description Googleマップで開いている場所をIngress UPC Reports Mapで開きます。
* @include https://www.google.co.jp/maps
* @license MIT License
* @javascript_url
*/
(function(){
var u = document.location.href;
var l = u.match(/\/@([-\d\.]+),([-\d\.]+),/);
open('http://rank-info.net/ingress/ingressupcmap.html?lat=' + l[1] + '&lon=' + l[2]);
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。