/* * @title count up css selector * @description count up css selector * @include http://* * @license MIT License */ (function(each) { each.call(document.styleSheets, function(s){ var t = 0; each.call(s.rules, function(r) { t += r.selectorText.split(',').length; }); console.log(t, s.rules.length, s.href || 'inline'); }); }(Array.prototype.forEach)); Permalink このページへの個別リンクです。 RAW 書かれたコードへの直接のリンクです。