Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = document.getElementsByClassName('content-item');
- var indices = [];
- for (var x = a.length - 1; x >= 0; x--) {
- indices.push(x);
- }
- var timerId = setInterval(function () {
- if (indices.length != 0) {
- a[indices.pop()].childNodes[1].click();
- } else {
- alert('done');
- clearTimeout(timerId);
- }
- }, 10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement