From d3fa483c4b7147ad7793283830d7debedc5b3000 Mon Sep 17 00:00:00 2001 From: elseif Date: Fri, 26 Sep 2025 13:26:27 +0800 Subject: [PATCH] Update index.html Signed-off-by: elseif --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c456d6c..fab3cd4 100644 --- a/index.html +++ b/index.html @@ -767,11 +767,10 @@ // Update command display based on selected tool and version function updateCommand(version) { const tool = document.querySelector('input[name="tool"]:checked').value; - const proxy = localStorage.getItem("gh-proxy-enabled") === "true" ? " | sed 's#https://github.com#https://gh-proxy.com/https://github.com#g'" : ""; const _version = version===undefined?"": `VERSION=${version} ` const cmd = tool === "curl" - ? `
${_version}bash \<(curl https://mikrotik.ltd/chr.sh${proxy})
` - : `
${_version}bash \<(wget -O - https://mikrotik.ltd/chr.sh${proxy})
`; + ? `
${_version}bash \<(curl https://mikrotik.ltd/chr.sh)
` + : `
${_version}bash \<(wget -O - https://mikrotik.ltd/chr.sh)
`; commandDiv.innerHTML = cmd; }