Skip to content

Instantly share code, notes, and snippets.

@mlindgren
Created April 8, 2022 03:44
Show Gist options
  • Save mlindgren/f7ec518b8bc064dbab1e797925b81120 to your computer and use it in GitHub Desktop.
Save mlindgren/f7ec518b8bc064dbab1e797925b81120 to your computer and use it in GitHub Desktop.
One-liner to change the type of all activities shown on the page in Garmin Connect
// Change all activity types on the page to eBiking
jQuery('.js-changeActivityType').each(async function(){ if(jQuery(this).text() == "eBiking"){ jQuery(this).click(); console.log("Clicked"); await sleep(100); } } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment