yet another stupid numeric character reference decoder

    @@ -6,12 +6,12 @@ * @javascript_url */ (() => { - const re_num_ref = /&#x?[0-9a-f]{1,5};/ + const re_num_ref = /&#x?[0-9a-f]{1,5};/; Array.from(document.querySelectorAll(".entry-title ~ blockquote")).forEach(b => { if (re_num_ref.test(b.textContent)) { - b.innerHTML = b.textContent + b.innerHTML = b.textContent; } - }) -})() + }); +})();
  • /*
     * @title yet another stupid numeric character reference decoder
     * @description 数値参照で汚染された s.hatena.ne.jp に平穏を取り戻します
     * @include http://s.hatena.ne.jp/*
     * @license MIT License
     * @javascript_url
     */
    (() => {
        const re_num_ref = /&#x?[0-9a-f]{1,5};/;
        Array.from(document.querySelectorAll(".entry-title ~ blockquote")).forEach(b => {
            if (re_num_ref.test(b.textContent)) {
                b.innerHTML = b.textContent;
            }
        });
    })();
    
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2017/02/20 14:02:41 - 2017-02-20
  2. 2017/02/17 11:32:36 - 2017-02-17
  3. 2017/02/17 11:28:12 - 2017-02-17
  4. 2017/02/17 09:58:57 - 2017-02-17
  5. 2017/02/17 08:41:29 - 2017-02-17
  6. 2017/02/17 08:39:16 - 2017-02-17