Skip to content

Instantly share code, notes, and snippets.

@ofalvai
Last active June 28, 2017 18:50
Show Gist options
  • Save ofalvai/a521102aa47383e81674e9f6a12c4598 to your computer and use it in GitHub Desktop.
Save ofalvai/a521102aa47383e81674e9f6a12c4598 to your computer and use it in GitHub Desktop.
Strava activity shoes bulk edit
/**
* Works on https://www.strava.com/athlete/training
* Overwrites all activities on the current page (use the pagination at the bottom!)
*/
var SHOE_INDEX = 2; // Starts with 0!
jQuery("#search-results tr").each((i, el) => {
var shoeSelect = jQuery(el).find("select.shoe-id").get(0);
jQuery(shoeSelect).children().eq(SHOE_INDEX).attr("selected", "selected");
jQuery(el).find("button[type='submit']").click();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment