Skip to content

Instantly share code, notes, and snippets.

@olikami
Created February 15, 2023 16:45
Show Gist options
  • Save olikami/dfc59a7ad42317ccbb4a1f0d7d76731d to your computer and use it in GitHub Desktop.
Save olikami/dfc59a7ad42317ccbb4a1f0d7d76731d to your computer and use it in GitHub Desktop.
Clean out Garmin Connect Workouts
for(let i = 1; i <= 25; i+= 1) {
setTimeout(() => {
document.querySelector("div.workouts table tbody tr span.dropdown button").click();
document.querySelector("span.dropdown.open ul li a.delete-workout").click();
document.querySelector("div.modal div.modal-footer a.btn-danger").click();
}, i * 2000);
}
setTimeout(() => {
location.reload();
}, 26 * 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment