<?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/peccu/rss">
    <link>https://let.hatelabo.jp/peccu/rss</link>
    <description></description>
    <title>Bookmarklets from peccu</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/peccu/let/hLHX1aWXk-AC"/>
        <rdf:li rdf:resource="https://let.hatelabo.jp/peccu/let/hLHXkpa-2qdI"/>
        <rdf:li rdf:resource="https://let.hatelabo.jp/peccu/let/hJmd_IipjMUz"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/peccu/let/hLHX1aWXk-AC">
    <link>https://let.hatelabo.jp/peccu/let/hLHX1aWXk-AC</link>
    <dc:date>2017-09-24T12:55:43Z</dc:date>
    <description>iOS11からデフォルトのカメラでQRCodeを読み込めるようになったので</description>
    <dc:creator>peccu</dc:creator>
    <title>[Let] 見ているページのURLをQRCode表示する</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fpeccu%2Flet%2FhLHX1aWXk-AC.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をQRCode表示する&lt;/a&gt;&lt;pre&gt;/*
 * @title 見ているページのURLをQRCode表示する
 * @description iOS11からデフォルトのカメラでQRCodeを読み込めるようになったので
 * @include http://*
 * @license MIT License 
 */


javascript:(function(){
  var idname = 'qrplaceholder';
  var createPlaceholder = function(){
    var c = document.createElement('div');
    c.style.width = '100%';
    c.style.height = '100%';
    c.style.position = 'fixed';
    c.style.display = 'flex';
    c.style.top = '0';
    c.style.backgroundColor = 'rgba(0, 0, 0, 0.1)';
    c.zIndex = 10000;
    c.onclick = function(){
      document.body.removeChild(c);
    };
    var d = document.createElement('div');
    d.id = idname;
    d.style.width = '266px';
    d.style.height = '266px';
    d.style.marginTop = '10px';
    d.style.zIndex = 9999;
    d.style.margin = 'auto';
    c.appendChild(d);
    document.body.appendChild(c);
  };

  var showSvg = function(){
    try {
      var qrcode = new QRCode({
        content: window.location.href,
        width: 256,
        height: 256,
        padding: 4
      });
      document.getElementById(idname).innerHTML = qrcode.svg();
    }
    catch (e) {
      alert(e.message);
    }
  };

  var loadJS = function(onload){
    var s = document.createElement('script');
    document.head.appendChild(s);
    s.onload = onload;
    s.src = '//papnkukn.github.io/qrcode-svg/javascripts/qrcode.js';
  };

  loadJS(function(){
    createPlaceholder();
    showSvg();
  });
})()&lt;/pre&gt;</content:encoded>
  </item>
  <item rdf:about="https://let.hatelabo.jp/peccu/let/hLHXkpa-2qdI">
    <link>https://let.hatelabo.jp/peccu/let/hLHXkpa-2qdI</link>
    <dc:date>2017-06-10T09:56:26Z</dc:date>
    <description>GitHubリポジトリとGitHub Pagesを行き来する。ブランチ名はgh-pages固定</description>
    <dc:creator>peccu</dc:creator>
    <title>[Let] GitHub←→gh-pages</title>
    <content:encoded>&lt;a href="javascript:var%20branch%3D%27gh-pages%27%3Bvar%20gh%3Dlocation.href.match%28%2F%5Ehttps%3A%5C%2F%5C%2Fgithub%5C.com%5C%2F%28%5B%5E%5C%2F%5D%2B%29%5C%2F%28%5B%5E%5C%2F%5D%2B%29%28%5C%2F%5B%5E%5C%2F%5D%2B%5C%2F%5B%5E%5C%2F%5D%2B%28.%2A%29%29%3F%2F%29%3Bif%28gh%21%3D%3Dnull%29%7Bvar%20user%3Dgh%5B1%5D%3Bvar%20repo%3Dgh%5B2%5D%3Bvar%20path%3Dgh%5B4%5D%3Fgh%5B4%5D%3A%27%27%3Blocation.href%3D%27https%3A%2F%2F%27%2Buser%2B%27.github.io%2F%27%2Brepo%2Bpath%7Dvar%20ghPages%3Dlocation.href.match%28%2F%5Ehttps%3A%5C%2F%5C%2F%28%5B%5E.%5D%2B%29%5C.github%5C.io%5C%2F%28%28%5B%5E%5C%2F%2B%5D%29%28.%2A%3F%29%3F%29%3F%28%5C%2F%3F%29%3F%28%5B%23%3F%5D.%2A%29%3F%24%2F%29%3Bif%28ghPages%29%7Bvar%20user%3DghPages%5B1%5D%3Bvar%20repo%3DghPages%5B3%5D%3F%27%2F%27%2BghPages%5B3%5D%3A%27%27%3Bvar%20dirPath%3DghPages%5B5%5D%3F%27%2Ftree%2F%27%2Bbranch%3A%27%2Fblob%2F%27%2Bbranch%3Bvar%20path%3DghPages%5B4%5D%3FdirPath%2BghPages%5B4%5D%3A%27%27%3Blocation.href%3D%27https%3A%2F%2Fgithub.com%2F%27%2Buser%2Brepo%2Bpath%7D"&gt;GitHub←→gh-pages&lt;/a&gt;&lt;pre&gt;/*
 * @title GitHub←→gh-pages
 * @description GitHubリポジトリとGitHub Pagesを行き来する。ブランチ名はgh-pages固定
 * @license MIT License
 * @javascript_url
 */

var branch = 'gh-pages';

var gh = location.href.match(/^https:\/\/github\.com\/([^\/]+)\/([^\/]+)(\/[^\/]+\/[^\/]+(.*))?/);
if(gh !== null){
  var user =  gh[1];
  var repo =  gh[2];
  var path = (gh[4] ? gh[4] : '');
  location.href = 'https://' +user + '.github.io/' +repo + path;
}
var ghPages = location.href.match(/^https:\/\/([^.]+)\.github\.io\/(([^\/+])(.*?)?)?(\/?)?([#?].*)?$/);
if(ghPages){
  var user = ghPages[1];
  var repo = (ghPages[3] ? '/' + ghPages[3] : '');
  var dirPath = (ghPages[5] ? '/tree/' + branch : '/blob/' + branch);
  var path = (ghPages[4] ? dirPath + ghPages[4] : '');
  location.href = 'https://github.com/' + user + repo + path;
}


  &lt;/pre&gt;</content:encoded>
  </item>
  <item rdf:about="https://let.hatelabo.jp/peccu/let/hJmd_IipjMUz">
    <link>https://let.hatelabo.jp/peccu/let/hJmd_IipjMUz</link>
    <dc:date>2016-10-20T05:16:44Z</dc:date>
    <description>「続きを読む」ボタンをクリックする手間を少しでも解消しようと。</description>
    <dc:creator>peccu</dc:creator>
    <title>[Let] 続きを読む</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fpeccu%2Flet%2FhJmd_IipjMUz.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 「続きを読む」ボタンをクリックする手間を少しでも解消しようと。
 * @include http://*
 * @license MIT License
 * @require jquery
 */


javascript:(function(){($(&amp;quot;a:contains(続きを読む)&amp;quot;)[0] || $(&amp;quot;a:contains(このページをスキップする)&amp;quot;)[0] || $(&amp;quot;a:contains(つづきを読む)&amp;quot;)[0]).click();})()&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
