Hacker News new | ask | show | jobs
by garrettjoecox 814 days ago
Love to automate these types of things. Unfortunately there isn't much benefit to automating the shopping/leveling, as this performs far better than any passive bonus those provide

  let stop = false;
  let play = () => {
    const button = document.querySelector('[data-word-button]');
    if (stop || !button) return;
   button.click();
    setTimeout(play, 0);
  }

  play(); // to play
  stop = true; // to stop
  localStorage.clear(); location.reload(); // to restart