您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redeems AC Staff Tournament first item until there are no more spendable points
// ==UserScript== // @name Neopets: Redeem AC Staff Tournament first item // @namespace Nyu@Clraik // @version 0.2 // @description Redeems AC Staff Tournament first item until there are no more spendable points // @author Nyu // @match *://*.neopets.com/altador/colosseum/staff/index.phtml // @license MIT // ==/UserScript== (function() { 'use strict' // Between clicks, in seconds const minToWait = 1 const maxToWait = 2 if (document.querySelector('.pointsBadge:nth-child(2) div').innerText === '0') return const itemImg = document.querySelector('.staffPrizeShopContainer .prize-item img') if(itemImg) { itemImg.click() setTimeout(() => { document.querySelector("#acStaff-drop-content .btn.yes-button").click() setTimeout(() => { document.querySelector('#acStaff-drop-content .purchase-result-button button').click() location.reload() }, Math.floor(Math.random() * ((maxToWait * 1000) - (minToWait * 1000) + 1) + (minToWait * 1000))) }, Math.floor(Math.random() * ((maxToWait * 1000) - (minToWait * 1000) + 1) + (minToWait * 1000))) } })();