修复部分页面重定向可能失效的问题 (#285)

This commit is contained in:
neveler
2025-10-15 18:25:54 +08:00
committed by GitHub
parent 1372f374bd
commit 5fd49d819f
13 changed files with 246 additions and 173 deletions
+2 -1
View File
@@ -23,13 +23,14 @@ Can't download? [Click here to download (alternative)](https://alist.8mi.tech/d/
<script>
/* 等待 5 秒. */
setTimeout(function() {
const isZhCN = /^zh-CN/i.test(navigator.language);
const url = isZhCN
? "https://alist.8mi.tech/d/mirror/ms-jdk/Auto/microsoft-jdk-21-windows-aarch64.msi"
: "https://aka.ms/download-jdk/microsoft-jdk-21-windows-aarch64.msi";
location.href = url;
}, 5000); // Wait 5 seconds
}, 5000);
</script>
+2 -1
View File
@@ -21,8 +21,9 @@ No redirect? [Click here to start downloading](https://bell-sw.com/pages/downloa
<script>
/* 等待 5 秒. */
setTimeout(function() {
window.location.href = "https://bell-sw.com/pages/downloads/?version=java-21&os=windows&architecture=x86&bitness=32&package=jre-full#:~:text=All%20versions";
}, 5000); // 等待 5 秒.
}, 5000);
</script>
+2 -1
View File
@@ -23,12 +23,13 @@ Can't download? [Click here to download (alternative)](https://alist.8mi.tech/d/
<script>
/* 等待 5 秒. */
setTimeout(function() {
const isZhCN = /^zh-CN/i.test(navigator.language);
const url = isZhCN
? "https://alist.8mi.tech/d/mirror/ms-jdk/Auto/microsoft-jdk-21-windows-x64.msi"
: "https://aka.ms/download-jdk/microsoft-jdk-21-windows-x64.msi";
window.location.href = url;
}, 5000); // Wait 5 seconds
}, 5000);
</script>