Created
November 23, 2022 21:48
-
-
Save benstaker/bb475874f27cfa7bea2943340f69051c to your computer and use it in GitHub Desktop.
Reolink Delete All Cloud Videos
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
let step = 0; | |
setInterval(() => { | |
switch (step) { | |
case 1: { | |
const selectFiles = $('.checkbox-label:contains("Select File(s) to Download or Delete")'); | |
selectFiles.click(); | |
break; | |
} | |
case 2: { | |
const selectAll = $('.checkbox-label:contains("Select All")'); | |
selectAll.click(); | |
break; | |
} | |
case 3: { | |
const deleteButton = $('.ui-button:contains("Delete")'); | |
deleteButton.click(); | |
break; | |
} | |
case 4: { | |
const yesButton = $('#save-button.ui-button:contains("Yes")'); | |
yesButton.click(); | |
break; | |
} | |
default: { | |
step = 0; | |
break; | |
} | |
} | |
step++; | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment