<?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/ephys/rss">
    <link>https://let.hatelabo.jp/ephys/rss</link>
    <description></description>
    <title>Bookmarklets from ephys</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/ephys/let/gYC-xbC_zpfNFw"/>
        <rdf:li rdf:resource="https://let.hatelabo.jp/ephys/let/gYC-yZ_k-YqnLA"/>
        <rdf:li rdf:resource="https://let.hatelabo.jp/ephys/let/gYC-yZ6A-ZS_BQ"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/ephys/let/gYC-xbC_zpfNFw">
    <link>https://let.hatelabo.jp/ephys/let/gYC-xbC_zpfNFw</link>
    <dc:date>2012-02-16T02:24:38Z</dc:date>
    <description>text node 中の長音をあ行に変換する</description>
    <dc:creator>ephys</dc:creator>
    <title>[Let] 長音あ行変換 (脱力用)</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fephys%2Flet%2FgYC-xbC_zpfNFw.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;長音あ行変換 (脱力用)&lt;/a&gt;&lt;pre&gt;/*
 * @title 長音あ行変換 (脱力用)
 * @description text node 中の長音をあ行に変換する
 * @include
 * @license MIT License
 * @require
 */

(function(){
    var regex = /([ぁ-ゖァ-ヶ])ー/g;

    search(document.getElementsByTagName('body')[0]);

    function search(elem) {
        if (elem.nodeType == 3) {
            elem.nodeValue = elem.nodeValue.replace(regex, convertLongVowel);
        }
        else if (elem.nodeType == 1 &amp;amp;&amp;amp; elem.hasChildNodes()) {
            for (var i = 0; i &amp;lt; elem.childNodes.length; i++) {
                search(elem.childNodes[i]);
            }
        }
    }

    function convertLongVowel(match, char) {
        var h = char;
        var gap = 0;
        var per = 2;

        if (char &amp;gt;= 'ァ') {
            h = String.fromCharCode(char.charCodeAt() - 'ァ'.charCodeAt() + 'ぁ'.charCodeAt());
        }

        if (h &amp;lt; 'づ') {
            gap = h.charCodeAt() - 'ぁ'.charCodeAt();
        }
        else if (h &amp;lt; 'な') {
            gap = h.charCodeAt() - 'づ'.charCodeAt() + 5;
        }
        else if (h &amp;lt; 'は') {
            gap = h.charCodeAt() - 'な'.charCodeAt();
            per = 1;
        }
        else if (h &amp;lt; 'ま') {
            gap = h.charCodeAt() - 'は'.charCodeAt();
            per = 3;
        }
        else if (h &amp;lt; 'ゃ') {
            gap = h.charCodeAt() - 'ま'.charCodeAt();
            per = 1;
        }
        else if (h &amp;lt; 'ら') {
            gap = h.charCodeAt() - 'ゃ'.charCodeAt();
            gap += Math.floor(gap / 2) * 2;
        }
        else if (h &amp;lt; 'ゎ') {
            gap = h.charCodeAt() - 'ら'.charCodeAt();
            per = 1;
        }
        else if (h &amp;lt; 'ゐ') {
            gap = 0;
        }
        else if (h &amp;lt;= 'ん') {
            return char + char;
        }
        else {
            per = 1;
            
            if (h == 'ゔ') {
                gap = 2;
            }
            else if (h == 'ゕ') {
                gap = 0;
            }
            else {
                gap = 3;
            }
        }

        return char + (char &amp;lt; 'ァ' ? 'あいうえお' : 'アイウエオ').charAt(Math.floor(gap / per % 5));
    }
}())&lt;/pre&gt;</content:encoded>
  </item>
  <item rdf:about="https://let.hatelabo.jp/ephys/let/gYC-yZ_k-YqnLA">
    <link>https://let.hatelabo.jp/ephys/let/gYC-yZ_k-YqnLA</link>
    <dc:date>2012-01-21T03:32:12Z</dc:date>
    <description>まわるよ！</description>
    <dc:creator>ephys</dc:creator>
    <title>[Let] └(:D」┌)┘</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fephys%2Flet%2FgYC-yZ_k-YqnLA.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;└(:D」┌)┘&lt;/a&gt;&lt;pre&gt;/*
 * @title └(:D」┌)┘
 * @description まわるよ！
 * @include http://*
 * @license MIT License
 * @require jquery
 */

(function(){
    var aa = ['└(:D」 ┌)┘', '－(:D」－)－', '┌(:D」 └)┐', '－(:D」－)－'];

    var f = function(i) {
        $(document).queue([]).delay(100).queue('fx', function() {
            document.title = aa[i % 4];
            if (i &amp;lt; 50) {
                f(i + 1);
            }
        });
    };

    f(4);
}())
&lt;/pre&gt;</content:encoded>
  </item>
  <item rdf:about="https://let.hatelabo.jp/ephys/let/gYC-yZ6A-ZS_BQ">
    <link>https://let.hatelabo.jp/ephys/let/gYC-yZ6A-ZS_BQ</link>
    <dc:date>2012-01-18T12:00:04Z</dc:date>
    <description>Wikipedia のオーバレイを消す</description>
    <dc:creator>ephys</dc:creator>
    <title>[Let] (ﾟAﾟ)</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fephys%2Flet%2FgYC-yZ6A-ZS_BQ.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;(ﾟAﾟ)&lt;/a&gt;&lt;pre&gt;/*
 * @title (ﾟAﾟ)
 * @description Wikipedia のオーバレイを消す
 * @include http://*
 * @license MIT License
 * @require 
 */

(function(){
    document.getElementById('mw-sopaOverlay').style.display = 'none';
    c = document.getElementsByTagName('body')[0].childNodes;
    for (i=0; i &amp;lt; c.length; i++) {
        if ('style' in c[i]) {
            c[i].style.display = 'block';
        }
    }
}())&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
