Last active
April 7, 2024 07:58
-
-
Save VAKHULA/33f1d014a564a412ec974221307216bd to your computer and use it in GitHub Desktop.
Font Families Checker
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
| const fonts = {} | |
| const elements = document.body.getElementsByTagName("*"); | |
| [...elements].map(element => { | |
| element.focus(); | |
| const font = window.getComputedStyle(element).getPropertyValue("font-family"); | |
| fonts[font] = 0 | |
| }) | |
| console.log(Object.keys(fonts).join('\n')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment