Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(Old Version) Install this as a bookmarklet and it will show the site's colophon if it uses TypeKit.
javascript:a=document.getElementsByTagName('script');y=''; for (i=0;i < (a.length - 1);i++) { x=a[i].getAttribute('src'); if(x) { if (x.search('typekit') >= 1) { var y='http://typekit.com/colophons/' + x.substring(23,30); } } } if (y != '') { window.location.assign(y); } else { void(y); alert('This site doesn\'t use Typekit!'); }
@capndesign

This comment has been minimized.

Copy link
Owner Author

@capndesign capndesign commented Nov 16, 2010

If you're here, I suggest you check out either my updated version that is a fork of markpasc's work, or pdokas' self-contained bookmarklet, which I also use in my updated version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment