はてなスター展開

    
      
  • /*
     * @title はてなスター展開
     * @description はてなスターの省略数字を展開し、☆アイコンをユーザアイコンに置き換えます。
     * @include http://*
     * @license BSD
     * @require jQuery
     * @require http://github.com/eduardolundgren/jquery-simulate/raw/master/jquery.simulate.js
     */
    (function() {
      $('.hatena-star-inner-count').simulate('click');
      setTimeout(function() {
        $('.hatena-star-star[src="http://s.hatena.ne.jp/images/star.gif"]').each(function(index, item) {
          item.src = 'http://www.st-hatena.com/users/' + item.alt.substr(0, 2) + '/' + item.alt + '/profile_s.gif';
        });
      }, 2000);
    })()
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/05/27 19:23:12 - 2010-05-27
  2. 2010/05/27 19:20:37 - 2010-05-27