スターコメント (吹き出しの方) を表示

  • /*
     * @title スターコメント (吹き出しの方) を表示
     * @description コメント権限がない場合は出ないと思います。
     * @include *
     * @license MIT License
     * @javascript_url
     */
    
    (() => {
    	if (window.Hatena && Hatena.Bookmark && Hatena.Bookmark.Star)
    	 Hatena.Star.EntryLoader.entries.forEach(s => {
    		if (s.can_comment) s.comment_container.style.display = '';
    	 });
    	else document.head.appendChild(document.createElement('style')).sheet.insertRule(
    		'span.hatena-star-comment-container { display: inline-block; }', 0
    	 );
     })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2017/02/21 14:11:47 - 2017-02-21
  2. 2017/02/17 20:31:08 - 2017-02-17
  3. 2017/02/17 20:23:51 - 2017-02-17
  4. 2011/10/18 23:26:46 - 2011-10-18