Crypko の放った子メモ用

    @@ -13,6 +13,6 @@ .then(r => r.json())) ).then(j => console.log( j.reverse().filter(j => j.name) - .map(j => `https://s.crypko.ai/c/${j.id}#_${j.name}__${j.bio}`.replace(/\s/, '_')) + .map(j => `https:\u002F\u002Fs.crypko.ai/c/${j.id}#_${j.name}__${j.bio}`.replace(/\s/, '_')) .join('\n') -)); +));
  • /*
     * @title Crypko の放った子メモ用
     * @description 取引の画面でカードの URL を抽出して、名前のあるカードへのリンクを生成します。
     * @include https://crypko.ai/#/transaction
     * @license MIT License
     * @javascript_url
     */
    
    void Promise.all(
     [...document.querySelectorAll('a[href*="card"]')]
      .filter(n => /手に入れました|受け取りました/.test(n.nextSibling.nodeValue))
      .map(n => fetch(n.href.replace(/^.*\/(\d+)$/, 'https://api.crypko.ai/crypkos/$1/detail'))
       .then(r => r.json()))
    ).then(j => console.log(
     j.reverse().filter(j => j.name)
      .map(j => `https:\u002F\u002Fs.crypko.ai/c/${j.id}#_${j.name}__${j.bio}`.replace(/\s/, '_'))
      .join('\n')
    ));
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2018/06/05 20:56:47 - 2018-06-05
  2. 2018/06/03 23:56:27 - 2018-06-03
  3. 2018/06/03 23:53:10 - 2018-06-03