Created
November 12, 2010 17:41
-
-
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.
This file contains 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
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!'); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.