Highlight Parts of the Page Where Specific WebFonts are Used
This bookmarklet parses CSS, Resource Timing and DOM to associate WebFont URLs with FontStacks. Real more about it in this blog post
Based on work from here.
To use,
-
You need to disable CORS in a new browser session in order for the script to be able to access cssRules. This can be done by using the
--disable-web-security
flag in Chrome. It should go without saying, but you should only do this for testing and close the insecure browser session once you are done! (command line examples for different OS's are here) -
paste following into the into the JS Console or create a bookmarklet:
var script = document.createElement('script'); script.src='https://cdn.jsdelivr.net/gh/paulcalvano/webfont-usage-analyzer@master/Font_Analysis.js'; document.body.appendChild(script);