UnitFormat

By Ivan Rivera Last update Aug 2, 2008 — Installed 392 times.


Script Summary: Parses a web page for microformat-enabled measurement units and provide automatic conversions in a non-intrusive way.

Remotely hosted version

Script homepage

Provides automatic conversions for measurement units marked up as in this example:

<abbr class="unit USD/mi EUR/km" title="0.45"> 45 cents per mile </abbr>

Conversion results look like this (currency conversions are live on the real thing):

45 cents per mile*

New version: Supports null units to perform base conversions (decimal, binary, octal & hex) and conversions from/to roman numerals:

<abbr class="unit hex decimal" title="0xFF">0xFF</abbr>

This script depends on Google Calculator. Please have a look at Greasemonkey and Microformats (or just look around Brucknerite, my blog) for more documentation.