Created
February 23, 2019 09:30
-
-
Save goranmoomin/4511719926d854ab98233b664e670ce3 to your computer and use it in GitHub Desktop.
Get all CSS class names
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
| Array.from(document.querySelectorAll("*")).map(el => el.className).filter(x => x).reduce((a, b) => a + " " + b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment