Skip to content

Commit

Permalink
add gitee url
Browse files Browse the repository at this point in the history
  • Loading branch information
居桉 authored Feb 15, 2022
1 parent f8b5573 commit 46ade70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ console.clear();
http.__okhttp__.setTimeout(10000);

let url = [
'https://gitee.com/sec-an/js/raw/master/UI.js',
'http://cdn.sec-an.cn/Better-Auto-XXQG/UI.js',
'https://github.secan.workers.dev/https://raw.githubusercontent.com/sec-an/Better-Auto-XXQG/main/UI.js',
'https://cdn.jsdelivr.net/gh/sec-an/Better-Auto-XXQG@main/UI.js',
Expand All @@ -12,15 +13,14 @@ let url = [
for (var i = 0; i < url.length; i++) {
try {
let res = http.get(url[i]);
console.log(res.statusCode);
console.log(i + ":" + res.statusCode);
if (res.statusCode == 200) {
var UI = res.body.string();
break;
if (UI.indexOf('"ui";') == 0) break;
} else {
toast('UI脚本:地址' + i + '下载失败');
console.log('UI脚本:地址' + i + '下载失败');
toastLog()('UI脚本:地址' + i + '下载失败');
}
} catch (error) {}
}

engines.execScript("UI", UI);
engines.execScript("UI", UI);

0 comments on commit 46ade70

Please sign in to comment.