Created
March 20, 2017 11:26
-
-
Save asvny/366e01c0f4735f7b695509a10a151c79 to your computer and use it in GitHub Desktop.
fetch custom fonts from page
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
[...document.styleSheets[0].rules].filter(sel => sel.cssText.startsWith('@font-face') ).map(sel =>sel.style.fontFamily) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment