Last active
October 18, 2024 15:18
-
-
Save XiaofengdiZhu/6745adff8f1f6648bb6e36a67667004d to your computer and use it in GitHub Desktop.
Super Turtle Idle Auto Click 超级乌龟放置自动点击
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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/ | |
// @downloadURL https://gist.github.com/XiaofengdiZhu/6745adff8f1f6648bb6e36a67667004d/raw/Super%2520Turtle%2520Idle%2520Auto%2520Click%2520%25E8%25B6%2585%25E7%25BA%25A7%25E4%25B9%258C%25E9%25BE%259F%25E6%2594%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%258A%25A8%25E7%2582%25B9%25E5%2587%25BB.user.js | |
// @updateURL https://gist.githubusercontent.com/XiaofengdiZhu/6745adff8f1f6648bb6e36a67667004d/raw/Super%2520Turtle%2520Idle%2520Auto%2520Click%2520%25E8%25B6%2585%25E7%25BA%25A7%25E4%25B9%258C%25E9%25BE%259F%25E6%2594%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%258A%25A8%25E7%2582%25B9%25E5%2587%25BB.meta.js | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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/ | |
// @downloadURL https://gist.github.com/XiaofengdiZhu/6745adff8f1f6648bb6e36a67667004d/raw/Super%2520Turtle%2520Idle%2520Auto%2520Click%2520%25E8%25B6%2585%25E7%25BA%25A7%25E4%25B9%258C%25E9%25BE%259F%25E6%2594%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%258A%25A8%25E7%2582%25B9%25E5%2587%25BB.user.js | |
// @updateURL https://gist.githubusercontent.com/XiaofengdiZhu/6745adff8f1f6648bb6e36a67667004d/raw/Super%2520Turtle%2520Idle%2520Auto%2520Click%2520%25E8%25B6%2585%25E7%25BA%25A7%25E4%25B9%258C%25E9%25BE%259F%25E6%2594%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%258A%25A8%25E7%2582%25B9%25E5%2587%25BB.meta.js | |
// @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); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment