Skip to content

Firefox plugin to automatically translate ° Fahrenheit and size measurements into european units

Notifications You must be signed in to change notification settings

IngaFeick/eurofox

Repository files navigation

Eurofox 🇪🇺 🔥 🦊

Firefox plugin to automatically translate ° Fahrenheit, weights, speed and size measurements into european units. To see the original value, hover over the measurement.

Before: Without the plugin

After: With the plugin

The numbers are rounded for easier reading, so don't expect exact values. The plugin will not work (yet) for values which are spelled out as words instead of numbers (such as one mile instead of 1 mile).

To check if the installation works in your browser, please navigate to the test page.

Supported units:

  • Temperature (Fahrenheit to Celsius)
  • Sizes (inch, foot, yard, miles)
  • Weights (stone, pound)
  • Areas (acres, square miles)
  • Speeds (mph, knots)
  • Liquids (barrel, gallon)

TODOs

  • BUG: broken test for inches (see https://regex101.com/r/WO25Zd/2 )
  • BUG: exclusion of style tags doesn't work anymore
  • WIP: DOM mutation observer - how to avoid endless recursion?
  • BUG: multiple edge cases on the test page
  • ESLint issue with "broken" regex
  • exclude form inputs & text areas from conversion?
  • add missing unit tests for yard, miles, acres and edge cases from test page
  • github protect main branch
  • convert units for cooking (pint, cup, quart, various spoons and ounces)
  • maybe replace jquery with pure js
  • make ESLint more strict
  • remove console output
  • explain demo page and add screenshots of expected outcomes
  • maybe ignore invisible nodes (css display/visibility)
  • add integration tests
  • add options to exclude domains
  • maybe support spelled out numbers, like nine inch nails in addition to 9 inch nails
  • add config option for css for the replacement span, such as background colour
  • add button to activate / deactivate in toolbar
  • test in chrome
  • publish

Notes for development

About

Firefox plugin to automatically translate ° Fahrenheit and size measurements into european units

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published