Metric Converter

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

作者
Alyssa B. Morton
日安装量
0
总安装量
1
评分
0 0 0
版本
1.2
创建于
2025-11-07
更新于
2025-11-07
大小
4.1 KB
许可证
MIT
适用于
所有网站

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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址