Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var tmp = $;
  2. // Set an interval
  3. setInterval(function() {
  4.   // Get the amount of actions left
  5.   var actionsLeft = parseInt(tmp('.action-timer__text').textContent.split(' ')[2]);
  6.  
  7.   // If amount of actions left is anywhere between 5-20
  8.   if (actionsLeft < Math.floor(Math.random() * (20 - 5 + 1) + 5)) {
  9.     // Trigger click on .action-timer (might be the wrong element), might be protected as well, no idea.
  10.     tmp('.action-timer').click();
  11.   // Repeat every 5 seconds
  12. }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement