Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function q(e,x) {return (x?e:document).querySelectorAll(x?x:e);}
- function q1(e,x) {return (x?e:document).querySelector(x?x:e);}
- function each(x,f){ return[0].forEach.call(x,f) }
- function removeReplies() {
- each(q(".post"), function(e) {
- if(e.innerHTML.indexOf("Replied to") > -1 || (q1(e,".post__meta__body").innerText.indexOf("@") == 0) {
- e.remove();
- }
- });
- }
- function upvoteEverything() {
- each(q(".post__score:nth-child(even) > a:nth-child(1)"),function(x) {x.click()});
- }
- function upvoteEverythingLoop1() {
- q(".post--filter > a")[0].click()
- setTimeout(upvoteEverythingLoop2, 1000);
- }
- function upvoteEverythingLoop2() {
- q(".post--filter > a")[1].click()
- setTimeout(upvoteEverythingLoop3, 1500+Math.random()*5000);
- }
- function upvoteEverythingLoop3() {
- removeReplies();
- upvoteEverything();
- setTimeout(upvoteEverythingLoop1, 15000+Math.random()*5000);
- }
- upvoteEverythingLoop1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement