Advertisement
jcunews

crazygame-more-ore-auto-ore-and-weak-spot-clicker-user.js

Feb 2nd, 2024 (edited)
1,769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         CrazyGame's More Ore auto ore and weak-spot clicker
  3. // @namespace    https://greasyfork.org/en/users/85671-jcunews
  4. // @version      1.0.1
  5. // @license      AGPL v3
  6. // @author       jcunews
  7. // @description  Middle-click anywhere outside of the ore. To stop, click anywhere in game screen or move the mouse over the ore. Context: https://old.reddit.com/r/HTML/comments/1ahk6dl/help_me_build_an_autoclicker/
  8. // @match        https://more-ore.game-files.crazygames.com/more-ore/*
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12. ((r, t) => {
  13.   function s() {
  14.     clearInterval(t);
  15.     r.removeEventListener("mouseover", s)
  16.     removeEventListener("mousedown", s)
  17.   }
  18.   addEventListener("mouseup", ev => {
  19.     if ((ev.button === 1) && (r = document.querySelector('.ore-sprite'))) {
  20.       setTimeout(() => {
  21.         r.dispatchEvent(new UIEvent("mousedown"));
  22.         t = setInterval(a => {
  23.           (a = document.querySelector('.weak-spot')) && a.click()
  24.         }, 20);
  25.         r.addEventListener("mouseover", s)
  26.         addEventListener("mousedown", s)
  27.       }, 100)
  28.     }
  29.   })
  30. })()
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement