Created
July 15, 2019 10:49
-
-
Save philwolstenholme/fc0e8052cd87d1e8cf7ce9815f659bfb to your computer and use it in GitHub Desktop.
Take the CSS classes of the currently selected DOM node in Chrome devtools and output it as a comma and newline separated string ready to paste into an array
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 characters
$0.classList.toString().split(" ").map(utilityClass => `'${utilityClass.trim()}',`).join('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment