Iconize is a very lightweight (under 2kb packed or minified) jQuery plugin that adds a content specific icon to each link that matches the selector.
The icon added is based on the remote files extension.
jpg, jpeg, png, gif, bmp, svg, eps, mp3, wav, ogg, wma, m4a, mov, wmv, mp4, avi, mpg, fla, swf, doc, rtf, txt, xls, pdf, pps, ical, rss, atom, zip, rar, gzip, bzip, ace, tar, gz, exe, dmg, app, html, htm, css, js, php, phps, opml, vcard, vcf, xpi, ttf, and last but not least torrent.
Couldn't be easier to use...
$('a').iconize();
Coming soon
Thanks to Alexander Kaiser for the inspiration for this plugin.
Also thank you to Famfamfam for their awesome icons.