コメントメタブタイトル修正

    
      
  • /*
     * @title メタブタイトル修正
     * @description メタブタイトルが「...のコメント」となってしまうところを、元ページのタイトルに変更する。
     * @include https://b.hatena.ne.jp/*
     * @license CC0
     * @javascript_url
     */
    
    void(async()=>{
      document.querySelector('.entry-editModal-textInput').value = new DOMParser().parseFromString( await ( await fetch(document.documentElement.dataset.entryUrl) ).text() , "text/html").querySelector('title').textContent;
      document.querySelector('.entry-editModal-decide').click();
    })()
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。