您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Lets you enable/disable any of the Challenges at any given point in time. This is compatiable with any save and will work on pre-existing saves. It's best to backup your save before using this.
当前为
// ==UserScript== // @name [Pokeclicker] Challenge Mode Changer // @namespace Pokeclicker Scripts // @author Ephenia // @description Lets you enable/disable any of the Challenges at any given point in time. This is compatiable with any save and will work on pre-existing saves. It's best to backup your save before using this. // @copyright https://github.com/Ephenia // @license GPL-3.0 License // @version 1.2 // @homepageURL https://github.com/Ephenia/Pokeclicker-Scripts/ // @supportURL https://github.com/Ephenia/Pokeclicker-Scripts/issues // @match https://www.pokeclicker.com/ // @icon https://www.google.com/s2/favicons?domain=pokeclicker.com // @grant none // @run-at document-idle // ==/UserScript== var scriptName = 'challengemodechanger'; var chalNames = []; function initChallenger() { var chalModal = document.getElementById('challengeModeModal'); var chalList = App.game.challenges.list; for (var chal in chalList) { chalNames.push(chal) } remDisable(); function remDisable() { var buttons = chalModal.querySelectorAll('button.btn'); buttons.forEach((element, index) => { if (element.innerText == "ACTIVE" || element.innerText == "DISABLED") { element.setAttribute("data-index", index); element.classList.remove("disabled"); element.addEventListener("click", toggleChallenge, false); } }) } function toggleChallenge() { var index = this.getAttribute("data-index"); chalCheck(index) ? chalChange(index, false) : chalChange(index, true); setTimeout(remDisable, 50); } function chalCheck(index) { return chalList[chalNames[index]].active(); } function chalChange(index, boolean) { return chalList[chalNames[index]].active(boolean); } } function loadScript(){ var oldInit = Preload.hideSplashScreen Preload.hideSplashScreen = function(){ var result = oldInit.apply(this, arguments) initChallenger() return result } } if (!App.isUsingClient || localStorage.getItem(scriptName) === 'true') { loadScript(); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址