您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
To make NGB webpage better
当前为
// ==UserScript== // @name Better NGB // @namespace Violentmonkey Scripts // @version 0.01 // @description To make NGB webpage better // @author Eric // @match http://192.168.1.10:8080/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; window.addEventListener('keyup', function (e) { if (e.altKey && e.key.toLowerCase() == 'x') { if (!document.querySelector("[id$='roomNo']")) { document.querySelector("[id$='room-status-log']").click(); } const box = setInterval(function () { const room = document.querySelector("[id$='roomNo']"); if (room) { room.value = prompt("room"); loadData(); clearInterval(box); } }, 500); // check every 500ms } else if (e.key == "Enter") { loadData(); } }); })();