Is there easy way to parse a HTML page to find all the fonts used (or all the font stacks used)?
Or similarly, is there a script that parses a page and returns which
developer tools are handy for this sort of thing, but you can spin your own by looping through every element and looking at its computed style properties.
function styleInPage(css, verbose){
if(typeof getComputedStyle== "undefined")
getComputedStyle= function(elem){
return elem.currentStyle;
}
var who, hoo, values= [], val,
nodes= document.body.getElementsByTagName('*'),
L= nodes.length;
for(var i= 0; i