Metric Converter

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
Alyssa B. Morton
Installazioni giornaliere
0
Installazioni totali
3
Valutazione
0 0 0
Versione
1.2
Creato il
07/11/2025
Aggiornato il
07/11/2025
Dimensione
4,05 KB
Licenza
MIT
Applica a
Tutti i siti

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.