Skip to content

Instantly share code, notes, and snippets.

@capndesign
Created November 12, 2010 17:41
Show Gist options
  • Save capndesign/674407 to your computer and use it in GitHub Desktop.
Save capndesign/674407 to your computer and use it in GitHub Desktop.
(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
Copy link
Author

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