Lucibear

Untitled

Aug 18th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Evolve - Click buttons
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       Lucibear
  7. // @match        https://tmvictor.github.io/Evolve-Scripting-Edition/
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. //@ts-check
  12. (function($) {
  13.     'use strict';
  14.  
  15.    
  16.     let int = setInterval(function(){
  17.         if (document.getElementById("queueColumn") === null) {
  18.             return;
  19.         }
  20.         let qs = document.querySelector("div#city").children;
  21.         let buttons = [];
  22.         buttons.push(qs[1].children[0]);
  23.         buttons.push(qs[2].children[0]);
  24.         buttons.push(qs[3].children[0]);
  25.         for (let butt of buttons) {
  26.         butt.click();
  27.     }},10);
  28. })();
Add Comment
Please, Sign In to add comment