Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var a = document.getElementsByClassName('content-item');
  2. var indices = [];
  3. for (var x = a.length - 1; x >= 0; x--) {
  4. indices.push(x);
  5. }
  6. var timerId = setInterval(function () {
  7. if (indices.length != 0) {
  8. a[indices.pop()].childNodes[1].click();
  9. } else {
  10. alert('done');
  11. clearTimeout(timerId);
  12. }
  13. }, 10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement