The imperial unit system, defined by the British in 1824, is still floating around everywhere, despite the International System of Units being a better system (well-defined, using only seven base units).
However, in other scenarios, such as the internet, it only makes it more difficult to put things into perspective if one is too lazy to make the calculation (e.g. "I ran 30 ft today!", or "I lifted 20 stone". Should I be impressed?).
Hence, I wrote a simple GreaseMonkey script, which looks for patterns of a number and an imperial unit, and adds the conversion (while also showing the original)
It is quite simple, and hence has some limitations: it will only convert upon page load (thus AJAXy pages won't benefit), looks for very specific patterns (hence "10 and 20 miles" will have only the latter replaced), it sometimes might not recognize some numbers, or sometimes it might convert too much. Another caveat is that the script assumes that thousands are separated by a comma (e.g. ten thousand is either 10000 or 10,000): the comma is removed alltogether from the string.
I've only run it so far in
- Firefox (tested with Greasemonkey)
Read the entire post to view the source. I've also added a simple HTML page with some units to have a quick look at the output.