Another Auto Clicker for More Ore

Another Auto Clicker for More Ore. Clicks weak spots with a randomised delay (edit the default of 400 for faster clicks); manual attacks for quests at 5 times a second; and gold nuggets (it's up to you to make the most of the nugget after it's clicked).

目前為 2022-06-12 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Another Auto Clicker for More Ore
// @namespace   Violentmonkey Scripts
// @match       https://syns.studio/more-ore/
// @grant       none
// @version     1.0
// @author      BlueberryPir8
// @icon        https://syns.studio/more-ore/misc-tinyRock.22ef93dd.ico
// @require     https://gf.qytechs.cn/scripts/444840-more-ore-notification/code/More%20Ore%20-%20Notification+.user.js
// @license     MIT
// @description Another Auto Clicker for More Ore. Clicks weak spots with a randomised delay (edit the default of 400 for faster clicks); manual attacks for quests at 5 times a second; and gold nuggets (it's up to you to make the most of the nugget after it's clicked).
// ==/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;
    // Overriding this event causes errors for now
    // const goldNugget = this.classList.contains('gold-nugget-container') ? 'Gold Nugget' : 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);
    }
    NotificationPlus?.load(`${weakSpot || manualAttack} Auto Clicker Enabled`);
    console.log(`${weakSpot || manualAttack} Auto Clicker Enabled`);
    return this._addEventListener(...args);
}

const weakSpotStart = (delay = 400) => {
  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')) {
      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();

QingJ © 2025

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