-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlatest.html
22 lines (22 loc) · 869 Bytes
/
latest.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script>var verCode = %1%;</script>
<script>
(function(){
let latestV = 1090;
try {
if(verCode>=latestV) {
var ls = navigator.languages;
let msg = "Already up to date!";
do {
for(var i in ls){
if(ls[i].startsWith("en")) break;
if(ls[i].startsWith("zh")) {
msg = "已经是最新版!";
break;}
}
}while(false);
alert(msg);return;}
}catch(e){}
location.href = "https://master.dl.sourceforge.net/project/uwebbrowser/v1/uweb"+latestV+".apk?viasf=1";
})();
</script>
<a href="en/changelog/index.html#" onclick="{let url=location.href;let l=url.length;if(url.charCodeAt(l-1)==35)return true;let iS=url.indexOf('/',14);if(l-iS<19)return true;location.href='i:0mi:5h:'+url+'/../en/changelog/index.html';return false;}">Release notes</a>