<?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/hoochiecoochie7/rss">
    <link>https://let.hatelabo.jp/hoochiecoochie7/rss</link>
    <description></description>
    <title>Bookmarklets from hoochiecoochie7</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/hoochiecoochie7/let/hJmdq7G_xrwk"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/hoochiecoochie7/let/hJmdq7G_xrwk">
    <link>https://let.hatelabo.jp/hoochiecoochie7/let/hJmdq7G_xrwk</link>
    <dc:date>2016-06-16T21:22:58Z</dc:date>
    <description>アマゾンのURLで商品名や参照元URLなど無用に長いURLを必要最低限まで短くしています。ただ、twitter用などに用意されているamzn.comやwww.の省略など、リダイレクトが発生するような短縮化は行っていません。</description>
    <dc:creator>hoochiecoochie7</dc:creator>
    <title>[Let] アマゾンのURL短縮化(多ヶ国対応版)</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fhoochiecoochie7%2Flet%2FhJmdq7G_xrwk.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;アマゾンのURL短縮化(多ヶ国対応版)&lt;/a&gt;&lt;pre&gt;/*
 * @title アマゾンのURL短縮化(多ヶ国対応版)
 * @description アマゾンのURLで商品名や参照元URLなど無用に長いURLを必要最低限まで短くしています。ただ、twitter用などに用意されているamzn.comやwww.の省略など、リダイレクトが発生するような短縮化は行っていません。
 * @include http://www.amazon.*
 * @license 悪さしなければ自由に使ってもらって構いません
 * @require 
 */

javascript: if (location.href.match(/(https:\/\/www\.amazon\.(com|co\.jp|de|fr|co\.uk|cn))/)) {
    var e = document.getElementById(&amp;quot;ASIN&amp;quot;);
    if (e != undefined) {
        var shorten_url = RegExp.$1 + &amp;quot;/dp/&amp;quot; + e.value;
        var result = prompt(&amp;quot;クリップボードにURLをコピーしたい場合Ctrl-Cを押してください。\n短縮URLのページへ移動したい場合はOKもしくはEnterを押してください。\nそうでない場合はキャンセルまたはEscapeでダイアログを閉じてください。&amp;quot;, shorten_url);
        if (result == shorten_url) location.href = shorten_url;
        else void(0);
    } else alert(&amp;quot;商品のページではありません(もしくはブックマークレットのバグで対応できないページなのかもしれません)。&amp;quot;);
} else alert(&amp;quot;対応サイトではありません。このブックマークレットはamazon.(com|co.jp|de|fr|co.uk|cn)で使えます。&amp;quot;);&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
