Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Server Monitor Widget (Final Version)
// @description Streamlined UI, left-aligned progress bar, and top-left update time.
// ==/UserScript==
// =========================================================
// 1. 配置区域:在这里填入你的 API 地址
// =========================================================
const API_URL = "http://192.168.1.1:43210/index.php?action=get_status";
const USE_MOCK_DATA = false; // 测试时保持 true,对接真实 API 时改为 false