GC: Automatically Select Battler

Automatically chooses the neopet you specify (in first line of script) as your battler at the battledome in 1P and 2P even if your battler is sick or at 0 HP.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         GC: Automatically Select Battler
// @version      1.0
// @namespace    https://github.com/NicoSlothEmoji
// @author       NicoSlothEmoji
// @description  Automatically chooses the neopet you specify (in first line of script) as your battler at the battledome in 1P and 2P even if your battler is sick or at 0 HP.
// @match        *://www.grundos.cafe/dome/1p/select/
// @match        *://www.grundos.cafe/dome/2p/search_pets/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe
// @license      MIT
// ==/UserScript==

// CHANGE PET NAME HERE. Change the pet name between the quotation marks to your pet's name.
// Make sure you do not include any extra spaces and that the capitalization, etc. are correct.
const petName = "PETNAME";

// DO NOT EDIT
if (/2p/.test(window.location.href)) {
    document.getElementById('page').value = petName;
}
else {
    document.getElementById('petname').value = petName;
}