Friday, January 29, 2010

Show File Type Bookmarklet

This bookmarklet will show you the file type of each link on a page by displaying an icon next to each one.

Show File Type
(version 0.1)

Try it out

You can try it out right now on this page. Simply click it now, or add it to your browser and then click it. Watch what happens to these sample links:

Word Document
JPG Document
Acrobat Document
SWF Document
Text Document
Excel Document
XML Document
Zip Document
Unknown Document

For common file types, it will use an image from the splitbrain.org file icons set. Otherwise, it will append the file extension to the end of the link. Common web page extensions (e.g. htm, html) are ignored. A link to this page and the version number are the first things embedded inside the bookmarklet.

No comments:

Post a Comment