您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Autofills the wishing well donation amount to 25. Inputs default wish, if that has been requested recently, inputs backup wish.
// ==UserScript== // @name GC - Better Wishing Well Autofill // @version 1 // @description Autofills the wishing well donation amount to 25. Inputs default wish, if that has been requested recently, inputs backup wish. // @author spiderpool1855 // @match https://grundos.cafe/wishing/ // @match https://www.grundos.cafe/wishing/ // @icon https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js // @license MIT // @grant none // @namespace https://greasyfork.org/users/1295622 // ==/UserScript== var mainWish="relic"; var backupWish="Magical Yellow Cybunny Plushie"; (function() { 'use strict'; if (window.location.href.match('grundos.cafe/wishing/')) { let donation = document.querySelector('[name="donation"]'); if (donation) { donation.value = 25; } let wish = document.querySelector('[name="wish"]'); if (wish) { wish.value = (mainWish); const strongElements = document.querySelectorAll('strong'); strongElements.forEach(strongElement => { const wishGivenRecently = strongElement.textContent; if (wishGivenRecently.includes('The well has given that item')) { console.log("Using backup"); wish.value = (backupWish); // Change to backup if condition is met } }); wish.focus(); // Focus once after setting the value } } })();