perf: localhost→127.0.0.1 fix IPv6 2s delay; simphtml radio/checkbox/svg/dropdown fixes; poll interval 0.5→0.2s

This commit is contained in:
Liang Jiaqing
2026-03-13 20:13:19 +08:00
parent 081aa12657
commit 908c1a52ed
4 changed files with 19 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// @grant unsafeWindow
// @connect localhost
// @connect 127.0.0.1
// @run-at document-start
// ==/UserScript==
@@ -26,13 +26,13 @@
return;
}
const wsUrl = 'ws://localhost:18765';
const httpUrl = 'http://localhost:18766/';
const wsUrl = 'ws://127.0.0.1:18765';
const httpUrl = 'http://127.0.0.1:18766/';
function isWebSocketServerAlive(callback) {
GM_xmlhttpRequest({
method: 'GET',
url: 'http://localhost:18765/',
url: 'http://127.0.0.1:18765/',
onload: () => callback(true),
onerror: () => callback(false)
});