Last active
December 28, 2015 00:29
Revisions
-
CrocoDillon renamed this gist
Nov 11, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
CrocoDillon renamed this gist
Nov 11, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
CrocoDillon created this gist
Nov 11, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ var classes = []; Array.prototype.forEach.call(document.querySelectorAll('*'), function(el) { el.className.split(/\s/).forEach(function(cl) { if (cl && classes.indexOf(cl) == -1) classes.push(cl); }); }); classes.sort(); classes.forEach(function(cl) { console.log(cl); });