Advertisement
Guest User

The better script. (Less DDOS-ey)

a guest
Oct 17th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const reset = () => {
  2.     if (document.querySelectorAll("[value='45101892']")[0]){
  3.         setTimeout(reset, 250);
  4.     }
  5.     else {
  6.         PDV_go9852433();
  7.         vote();
  8.     }
  9. }
  10.  
  11. const vote = () => {
  12.     while (!document.querySelector("#PDI_answer45101892")){console.log("waiting");}
  13.     document.querySelectorAll("[value='45101892']")[0].checked = true;
  14.     var VOTE = document.querySelector(".pds-vote-button");
  15.     PD_prevote9852433({pageX: VOTE.getBoundingClientRect().x,pageY: VOTE.getBoundingClientRect().y});
  16.     setTimeout(() => reset(), 500);
  17. }
  18. vote();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement