Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name CrazyGame's More Ore auto ore and weak-spot clicker
- // @namespace https://greasyfork.org/en/users/85671-jcunews
- // @version 1.0.1
- // @license AGPL v3
- // @author jcunews
- // @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/
- // @match https://more-ore.game-files.crazygames.com/more-ore/*
- // @grant none
- // ==/UserScript==
- ((r, t) => {
- function s() {
- clearInterval(t);
- r.removeEventListener("mouseover", s)
- removeEventListener("mousedown", s)
- }
- addEventListener("mouseup", ev => {
- if ((ev.button === 1) && (r = document.querySelector('.ore-sprite'))) {
- setTimeout(() => {
- r.dispatchEvent(new UIEvent("mousedown"));
- t = setInterval(a => {
- (a = document.querySelector('.weak-spot')) && a.click()
- }, 20);
- r.addEventListener("mouseover", s)
- addEventListener("mousedown", s)
- }, 100)
- }
- })
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement