Skip to content

Instantly share code, notes, and snippets.

View almeidap's full-sized avatar

Pedro De almeida almeidap

View GitHub Profile
$.each(document.styleSheets, function(index) {
var id = this.href || '[inline]',
rules = this.cssRules ? this.cssRules.length : 0,
selectors = 0;
$.each(this.cssRules, function() {
if (this.selectorText) {
try {
selectors += this.selectorText.split(',').length;
} catch (err) {