Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create function
- function waitScrape(class_name)
- {
- console.log("Starting");
- var buttons = document.getElementsByClassName(class_name);
- for(i = 0; i <= buttons.length; i++) {
- setTimeout(function () {
- // register click event
- buttons[i].click();
- // Set wait time for 3 seconds (3000 milliseconds)
- }, 3000);
- }
- }
- // Initiate function
- waitsScrape('UnFollowUser');
Add Comment
Please, Sign In to add comment