<?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/vip0/rss">
    <link>https://let.hatelabo.jp/vip0/rss</link>
    <description></description>
    <title>Bookmarklets from vip0</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/vip0/let/g5G0qLiw999i"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/vip0/let/g5G0qLiw999i">
    <link>https://let.hatelabo.jp/vip0/let/g5G0qLiw999i</link>
    <dc:date>2020-04-04T04:49:55Z</dc:date>
    <description>株をスプレッドシートフォーマットに変換</description>
    <dc:creator>vip0</dc:creator>
    <title>[Let] parse kabu</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fvip0%2Flet%2Fg5G0qLiw999i.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;parse kabu&lt;/a&gt;&lt;pre&gt;/*
 * @title parse kabu
 * @description 株をスプレッドシートフォーマットに変換
 * @include http://*
 * @license MIT License
 * @require 
 */
javascript: (() =&amp;gt; { document.querySelectorAll('.post').forEach((e) =&amp;gt; { const resNum = e.getElementsByClassName('number')[0].innerText; const mes = e.getElementsByClassName('message')[0]; const match = mes.innerText .split('\n') .map((line) =&amp;gt; /^.*\d+( .+\/.+){6}$/.exec(line)) .filter(Boolean); if (!match || !match[0] || !match[0][0]) return; const table = document.createElement('table'); table.setAttribute('border', '1'); const tr = document.createElement('tr'); ['5' + 'ch', '-' + resNum] .concat(match[0][0].split(/ |\//g)) .forEach((c) =&amp;gt; { const td = document.createElement('td'); td.appendChild(document.createTextNode(c)); tr.appendChild(td); }); table.appendChild(tr); mes.appendChild(table); }); })();&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
