Created
February 15, 2023 16:45
-
-
Save olikami/dfc59a7ad42317ccbb4a1f0d7d76731d to your computer and use it in GitHub Desktop.
Clean out Garmin Connect Workouts
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
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