Advertisement
Guest User

Untitled

a guest
Dec 18th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. function q(e,x) {return (x?e:document).querySelectorAll(x?x:e);}
  2. function q1(e,x) {return (x?e:document).querySelector(x?x:e);}
  3. function each(x,f){ return[0].forEach.call(x,f) }
  4.  
  5. function removeReplies() {
  6. each(q(".post"), function(e) {
  7. if(e.innerHTML.indexOf("Replied to") > -1 || (q1(e,".post__meta__body").innerText.indexOf("@") == 0) {
  8. e.remove();
  9. }
  10. });
  11. }
  12.  
  13. function upvoteEverything() {
  14. each(q(".post__score:nth-child(even) > a:nth-child(1)"),function(x) {x.click()});
  15. }
  16.  
  17. function upvoteEverythingLoop1() {
  18. q(".post--filter > a")[0].click()
  19. setTimeout(upvoteEverythingLoop2, 1000);
  20. }
  21.  
  22. function upvoteEverythingLoop2() {
  23. q(".post--filter > a")[1].click()
  24. setTimeout(upvoteEverythingLoop3, 1500+Math.random()*5000);
  25. }
  26.  
  27. function upvoteEverythingLoop3() {
  28. removeReplies();
  29. upvoteEverything();
  30. setTimeout(upvoteEverythingLoop1, 15000+Math.random()*5000);
  31. }
  32.  
  33. upvoteEverythingLoop1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement