您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
auto
// ==UserScript== // @name 塵白方塊自動填入數字按鈕 // @namespace http://tampermonkey.net/ // @version 1.0 // @description auto // @author who care // @match https://cmdblockzqg.github.io/cbjq/ // @match https://xyyx.cmdblock.top/ // @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js // @grant none // @license MIT // ==/UserScript== var changeButtonHtml = '<input type="button" value="改數字" ' + 'style="position: fixed; top: 89px; left: 328px; z-index: 9999; ">'; jQuery('body').append(changeButtonHtml); jQuery('body').on('click', 'input[type="button"][value="改數字"]', function() { const inputs = Array.from(document.querySelectorAll('p input[type="text"]')); const cubeInputs = inputs.slice(2); let oneCount = 0; for (let i = 0; i < cubeInputs.length; i++) { const input = cubeInputs[i]; let value; if (i < 7) { value = '3'; } else { value = '2'; oneCount++; if (oneCount > 2) break; } input.value = value; const event = new Event('input', { bubbles: true }); input.dispatchEvent(event); } });