<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel rdf:about="https://let.hatelabo.jp/muramototomoya/rss">
    <link>https://let.hatelabo.jp/muramototomoya/rss</link>
    <description></description>
    <title>Bookmarklets from muramototomoya</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/muramototomoya/let/hJmf15aH6KZb"/>
        <rdf:li rdf:resource="https://let.hatelabo.jp/muramototomoya/let/hLHX15Shzstr"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/muramototomoya/let/hJmf15aH6KZb">
    <link>https://let.hatelabo.jp/muramototomoya/let/hJmf15aH6KZb</link>
    <dc:date>2017-09-25T14:11:34Z</dc:date>
    <description>Switch between OSM and Mapillary</description>
    <dc:creator>muramototomoya</dc:creator>
    <title>[Let] OSM &lt;-&gt; Mapillary</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fmuramototomoya%2Flet%2FhJmf15aH6KZb.bookmarklet.js%20%28arg%29%22.replace%28%2F%28%5CS%2B%29%5Cs%2B%28%5CS%2A%29%2F%2Cfunction%28s%2Curl%2Carg%29%7Bs%3Ddocument.createElement%28%22script%22%29%3Bs.charset%3D%22utf-8%22%3Bs.src%3Durl%2B%22%3Fs%3D%22%2BencodeURIComponent%28arg%29%3Bdocument.body.appendChild%28s%29%7D%29%3Bvoid%280%29%3B"&gt;OSM &amp;lt;-&amp;gt; Mapillary&lt;/a&gt;&lt;pre&gt;/*
 * @title OSM &amp;lt;-&amp;gt; Mapillary
 * @description Switch between OSM and Mapillary
 * @include http://*
 * @license MIT License
 * @require 
 */


var map_url = location.href;
xyz = map_url.match(/\d[0-9.]*/g);
if (map_url.match(/(mapillary)/)){
 window.location.href = 'http://www.openstreetmap.org/#map=' + xyz[2] + '/' + xyz[0] + '/' + xyz[1];
}
else if(map_url.match(/(openstreetmap)/)){
 window.location.href = 'https://www.mapillary.com/app/?lat=' + xyz[1] + '&amp;amp;lng=' + xyz[2] + '&amp;amp;z=' + xyz[0];
}
&lt;/pre&gt;</content:encoded>
  </item>
  <item rdf:about="https://let.hatelabo.jp/muramototomoya/let/hLHX15Shzstr">
    <link>https://let.hatelabo.jp/muramototomoya/let/hLHX15Shzstr</link>
    <dc:date>2017-09-25T13:40:08Z</dc:date>
    <description>Switch between OpenStreetMap and Google map</description>
    <dc:creator>muramototomoya</dc:creator>
    <title>[Let] OSM &lt;-&gt; GMap</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fmuramototomoya%2Flet%2FhLHX15Shzstr.bookmarklet.js%20%28arg%29%22.replace%28%2F%28%5CS%2B%29%5Cs%2B%28%5CS%2A%29%2F%2Cfunction%28s%2Curl%2Carg%29%7Bs%3Ddocument.createElement%28%22script%22%29%3Bs.charset%3D%22utf-8%22%3Bs.src%3Durl%2B%22%3Fs%3D%22%2BencodeURIComponent%28arg%29%3Bdocument.body.appendChild%28s%29%7D%29%3Bvoid%280%29%3B"&gt;OSM &amp;lt;-&amp;gt; GMap&lt;/a&gt;&lt;pre&gt;/*
 * @title OSM &amp;lt;-&amp;gt; GMap
 * @description Switch between OpenStreetMap and Google map
 * @include http://*
 * @license 
 * @require 
 */

//var osm_url = 'http://www.openstreetmap.org/user/futurumspes/history#map=9/35.5367/135.7141';
//var gmap_url = 'https://www.google.co.jp/maps/@35.5652925,139.4063292,10.75z';
//var map_url = gmap_url;
var map_url = location.href;
xyz = map_url.match(/\d[0-9.]*/g);
if (map_url.match(/(openstreetmap)/)){
 window.location.href = 'https://www.google.co.jp/maps/@' + xyz[1] + ',' + xyz[2] + ',' + xyz[0] + 'z';
}
else if(map_url.match(/(google).*(maps)/)){
 window.location.href = 'http://www.openstreetmap.org/#map=' + xyz[2] + '/' + xyz[0] + '/' + xyz[1];
}
&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
