Merlinas11
Newbie
- Dec 27, 2023
- 33
- 18
With some knowledge of DOM and javascript you can do it easily by entering few lines in Console.
1. First find a way to uniquely identify the array of buttons by class or id or tag names if possible.
2. Run a for loop to call click() on each button.
3. You can also set delay by using a function for it.
Best thing is you can just open console in browser and use such scripts.
Example -
Note - This implementation is just to get rid of clicking button one by one. How much gap you want to give for safety is your choice.
1. First find a way to uniquely identify the array of buttons by class or id or tag names if possible.
2. Run a for loop to call click() on each button.
3. You can also set delay by using a function for it.
Best thing is you can just open console in browser and use such scripts.
Example -
JavaScript:
var buttons = document.getElementsByClassName('nameOfClass');
while(buttons.length != 0){
buttons[i].click();delay(5000);}
function delay(msdelay){
let datetime1 = new Date().getTime();
let datetime2 = datetime1+msdelay;
console.log("wait for"+msdelay/1000 +"seconds" );
while(datetime1<datetime2) {
datetime1 = new Date().getTime();
}}
Note - This implementation is just to get rid of clicking button one by one. How much gap you want to give for safety is your choice.