↓☆

    
      
  • /*
     * @title ↓☆
     * @description はてなブックマークのコメントを☆順にソート
     * @include http://b.hatena.ne.jp/entry*
     * @license MIT License
     * @require 
     */
    
    (function(d,k,t,n,f,h,u,l,s,c,e,i,p){for(u=d.getElementById('bookmarked_user'),l=u[f];l;l=l.nextSibling){s=c=0;if(l.tagName!='LI')continue;e=l[t]('img');for(i=e.length;i--;)e[i][n]==h+'star'?++s:0;e=l[t]('span');for(i=e.length;i--;){p=e[i];p[n]==h+'inner-count'?s+= +p.innerHTML:p[n]=='comment'&&p[f]?++c:0}s||c?k.push({l:l,s:s}):0}k.sort(function(a,b){return b.s-a.s});for(i=k.length;i--;u.insertBefore(k[i].l,u[f]));})(document,[],'getElementsByTagName','className','firstChild','hatena-star-')
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/05/23 11:39:20 - 2010-05-23