Last active
June 28, 2017 18:50
-
-
Save ofalvai/a521102aa47383e81674e9f6a12c4598 to your computer and use it in GitHub Desktop.
Strava activity shoes bulk edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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