/*
* @title Expand Hatena::Star
* @description expand Hatena::Star handle colored stars
* @include http://*
* @include https://*
* @license MIT License http://nrm.mit-license.org/2012
* @javascript_url
*/
// c.f.
// http://ptech.g.hatena.ne.jp/noromanba/20120423/1335205764
// e.g.
// http://d.hatena.ne.jp/amachang/archive
// http://os0x.g.hatena.ne.jp/os0x/20080502/1209724672
(function () {
var Hatena = window.Hatena || {};
if (!Hatena.Star) return;
Hatena.Star.EntryLoader.entries.forEach(function (entry) {
var expander = entry.star_container.querySelector('.hatena-star-inner-count');
if (!expander || !expander.textContent) return;
entry.stars.some(function (star) {
if (star && star.count && star.showInnerStars) {
star.showInnerStars();
return true;
}
});
});
})();