Metric Converter

Converts US/Imperial units to SI/Metric on visible text only, rounding metric values to 2 decimals.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
Alyssa B. Morton
Daily installs
0
Total installs
2
Ratings
0 0 0
Version
1.2
Created
2025-11-07
Updated
2025-11-07
Size
4.05 KB
License
MIT
Applies to
All sites

Description:


The Metric Converter userscript automatically converts US/Imperial units on webpages to SI/Metric units and appends the converted value in brackets behind the original US unit. All metric values are rounded to 2 decimal places for clean display. Ideal for shopping, cooking, recipes, and online research.

Features:

  • Converts length: inch, feet, yard, mile → meters/kilometers
  • Converts weight: ounce, pound, stone → kilograms
  • Converts volume: cup, pint, quart, gallon, fl oz → liters
  • Converts speed: mph → km/h
  • Converts fuel efficiency: mpg → L/100 km
  • Converts temperature: °F → °C
  • Converts area: sq. ft, sq. yd → m²
  • Converts volume: cu. in, cu. ft → m³
  • All converted metric values are rounded to 2 decimal places
  • Only converts visible text; ignores scripts, styles, inputs, textareas, links, and code blocks

Instructions:


Step 1: Install a Userscript Manager

   Install a userscript manager such as Violentmonkey or Tampermonkey in your browser.


Step 2: Add the Script

   Copy the entire Metric Converter userscript code and create a new script in your userscript manager.


Step 3: Save and Enable the Script

   After adding the script, save it and ensure it is enabled in your userscript manager.


Step 4: Browse Normally

   Navigate to any website. US/Imperial units in visible text will automatically display converted metric values in brackets.

Notes:

  • The script only converts visible text, so it won’t break links, forms, or code snippets.
  • All metric values are rounded to 2 decimal places for readability.
  • If conversions do not appear immediately, refresh the page.