Another Auto Clicker for More Ore

Another Auto Clicker for More Ore (working as of v1.5.7 Beta). Clicks weak spots (with a randomized delay), manual attacks for quests, gold nuggets, and hulk smashes.

当前为 2022-06-14 提交的版本,查看 最新版本

// ==UserScript==
// @name        Another Auto Clicker for More Ore
// @namespace   Violentmonkey Scripts
// @match       https://syns.studio/more-ore/
// @grant       none
// @version     1.3
// @author      BlueberryPir8
// @icon        https://syns.studio/more-ore/misc-tinyRock.22ef93dd.ico
// @license     MIT
// @compatible  firefox >=52
// @compatible  chrome >=57
// @compatible  edge >=14
// @description Another Auto Clicker for More Ore (working as of v1.5.7 Beta). Clicks weak spots (with a randomized delay), manual attacks for quests, gold nuggets, and hulk smashes.
// ==/UserScript==

/* jshint esversion: 6 */
Element.prototype._addEventListener = Element.prototype.addEventListener;
Element.prototype.addEventListener = function (...args) {
    const weakSpot = this.classList.contains('weak-spot') ? 'Weak Spot' : null;
    const manualAttack = this.classList.contains('manual-attack') ? 'Manual Attack' : null;
    if (!(weakSpot || manualAttack)) {
      this._addEventListener(...args);
      return;
    }
    let cb = args[1];
    args[1] = function cbOverride (...args2) {
        args2[0] = Object.assign({}, args2[0])
        args2[0].isTrusted = true;
        return cb(...args2);
    }
    return this._addEventListener(...args);
}

const weakSpotStart = (delay = 50) => {
  setTimeout(() => {
    if (document.querySelector('.weak-spot')) {
      document.querySelector('.weak-spot').click();
    }
    weakSpotStart();
  }, Math.random() * delay + delay);
}
weakSpotStart();

const manualAttackStart = (delay = 200) => {
  setTimeout(() => {
    if (document.querySelector('.manual-attack')) {
      if (!document.querySelector('.quest-banner-container > .quest-success') && !document.querySelector('.quest-banner-container > .quest-failed')) document.querySelector('.manual-attack').click();
    }
    manualAttackStart();
  }, delay);
}
manualAttackStart();

const goldNuggetStart = (delay = 200) => {
  setTimeout(() => {
    if (document.querySelector('.gold-nugget-container')) {
      document.querySelector('.gold-nugget-container').click();
    }
    goldNuggetStart();
  }, delay);
}
goldNuggetStart();

const hulkSmashStart = (delay = 200) => {
  setTimeout(() => {
    if (document.querySelector('.active-skill-hulkSmash')) {
      const elem = document.querySelector('.active-skill-hulkSmash');
      if (!elem.classList.contains('on-cooldown')) elem.click();
    }
    hulkSmashStart();
  }, delay);
}
hulkSmashStart();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址