Expand Hatena::Star
by
noromanba
2014-12-11 [2014/12/11 03:55:50]
expand Hatena::Star handle colored stars
/*
* @title Expand Hatena::Star
* @description Expand Hateha::Star handle colored stars
* @include http://*
* @license MIT License http://nrm.mit-license.org/2012
* @require
*/
// http://os0x.g.hatena.ne.jp/os0x/20080502/1209724672
(function(Hatena) {
if (typeof Hatena === 'undefined') return;
Hatena.Star.EntryLoader.entries.forEach(function (entry) {
entry.stars.some(function (star) {
if(star && star.showInnerStars) {
star.showInnerStars();
return true; // rustic
}
});
});
})(window.Hatena);
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。