SHARE
TWEET

Untitled

a guest Jan 14th, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setInterval(function () {
  2.  
  3.     const elements = document.getElementsByClassName("farm_icon_c");
  4.  
  5.     if (elements.length === 0)
  6.         location.reload();
  7.  
  8.     let have = false;
  9.     let amount = 0;
  10.  
  11.     for (let row in elements) {
  12.  
  13.         if (+document.getElementById("light").innerHTML === 0)
  14.             location.reload();
  15.  
  16.  
  17.         const element = elements[row];
  18.  
  19.         if (element.classList && !element.classList.contains("farm_icon_disabled")) {
  20.             have = true;
  21.             amount++;
  22.             element.click();
  23.  
  24.             if (amount === 4)
  25.                 break
  26.         }
  27.  
  28.     }
  29.  
  30.     if (!have)
  31.         location.reload();
  32.  
  33.  
  34. }, 1500);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top