From e338ddb7b25876fd507ddcdd879974c7074d16cf Mon Sep 17 00:00:00 2001 From: elseif Date: Fri, 26 Sep 2025 13:15:28 +0800 Subject: [PATCH] Update index.html Signed-off-by: elseif --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index aab4269..c456d6c 100644 --- a/index.html +++ b/index.html @@ -611,6 +611,10 @@ // GitHub proxy functionality const ghProxyCheckbox = document.getElementById("gh-proxy"); const clearCacheBtn = document.getElementById("clear-cache"); + if (localStorage.getItem("gh-proxy-enabled") === null && navigator.language.startsWith("zh")) { + // Enable GitHub proxy by default for Chinese users + localStorage.setItem("gh-proxy-enabled", "true"); + } ghProxyCheckbox.checked = localStorage.getItem("gh-proxy-enabled") === "true"; clearCacheBtn.style.display = ghProxyCheckbox.checked ? "inline-flex" : "none";