Greasy Fork

Greasy Fork is available in English.

Super Turtle Idle Auto Click 超级乌龟放置自动点击

for v0.4.0

当前为 2024-07-25 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Super Turtle Idle Auto Click 超级乌龟放置自动点击
// @name:en      Super Turtle Idle Auto Click
// @name:zh      超级乌龟放置自动点击
// @namespace    http://tampermonkey.net/
// @version      2024-07-25
// @description  for v0.4.0
// @author       销锋镝铸 XiaofengdiZhu
// @supportURL   https://gist.github.com/XiaofengdiZhu/6745adff8f1f6648bb6e36a67667004d
// @license      MIT
// @match        https://gltyx.github.io/super-turtle-idle/
// @match        https://super-turtle-idle.g8hh.com.cn/
// @match        https://super-turtle-idle.g8hh.com/
// @match        https://superturtleidle.github.io/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    let rpgPlayerImg = did("rpgPlayerImg");
    let jesterWrapper = did("jesterWrapper");
    let mysteryList = did("mysteryList");
    setInterval(() => {
        //自动点击左下角乌龟 Auto click the turtle at left bottom
        if (!clickCooldown) {
            turtleClick();
        }
        //自动点击复活 Auto click for reviving
        if (!rpgPlayer.alive) {
            rpgPlayerImg.click();
        }
        //自动点击小丑龟 Auto click jester turtle
        if (jesterWrapper.hasChildNodes()) {
            jesterWrapper.firstChild.click();
        }
        //自动打开礼物敌人 Auto open mystery present enemy
        if (stats.currentEnemy == "E15") {
            did("E15enemy").firstChild.dispatchEvent(new MouseEvent('contextmenu', {
                'view': window,
                'bubbles': true,
                'cancelable': false
            }));
        }
        //自动打开礼物敌人的礼物 Auto open mystery presents
        if(mysteryList.hasChildNodes()){
            let endGame;
            for(let mystery of mysteryList.children){
                if(mystery.id.startsWith("endGame")){
                    endGame = mystery;
                }
                else{
                    mystery.click();
                }
            }
            endGame.click();
        }
    }, 50);
})();