您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add cancel buttoms for queues
// ==UserScript== // @name Halloween QoL // @namespace https://gf.qytechs.cn/zh-CN/users/164491-mirrorcubesquare // @version 0.1 // @description add cancel buttoms for queues // @author MCS // @match http://www.mousehuntgame.com/* // @match https://www.mousehuntgame.com/* // @icon https://www.google.com/s2/favicons?domain=mousehuntgame.com // @grant none // ==/UserScript== function generateNode(slot,cauldron) { var node=document.createElement('a'); node.href="#"; node.className='halloweenBoilingCauldronRecipeView-cauldron-queueSlot-cancelButton MCS-Placeholder'; node.onclick=function(){hg.views.HeadsUpDisplayHalloweenBoilingCauldronView.removeFromQueue(this);return false;} node.setAttribute('data-cauldron-index',cauldron); node.setAttribute('data-queue-slot',slot); return node; } function refreshNode() { /*document .querySelectorAll(".MCS-Placeholder") .forEach(el => el.remove());*/ document.querySelectorAll(".halloweenBoilingCauldronHUD-cauldron-queue").forEach(item=>{ item.insertBefore(generateNode(item.getAttribute('data-queue-slot'),item.getAttribute('data-cauldron-index')),item.firstChild); }); } (function() { 'use strict'; refreshNode(); // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址