December 19th 2013

Quickly switching between imperial and metric units on Strava

British triathletes are quite schizophrenic about their units: not "European" enough to bike using metric units yet not "American" enough to run using their imperial counterparts.

Garmin units seem happy enough to accomodate this contradiction but Strava only has a single global setting.

Switching units would normally involve visiting your settings page—inconvenient when viewing lots of run and bike pages—so I wrote a Chrome extension that toggles between the different unit types via a Strava icon in the address bar:

I considered a solution that actually converted the values displayed on the page but the illusion would always be shattered by Javascript elements which would require extensive monkey-patching to ensure the desired unit was rendered:

Source code is available, which should also serve as a template for similar extensions. If you found this Strava extension useful, you might like my extensions to change the default comparison filter on leaderboards or to estimate your running TSS score.

You can subscribe to new posts via email or RSS.