From 477beaef39e405dc0bc181dcf05f308303d9c9fd Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 10 Apr 2022 20:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=A4=96=E7=BD=AE=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99]=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Autopage.user.js b/Autopage.user.js index e378ff5..bd09f29 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1516,6 +1516,7 @@ function: { function getRulesUrl_(n = false, url) { if (n) {url = urlArr2[Math.floor(Math.random()*urlArr2.length)];} else {url = urlArr[Math.floor(Math.random()*urlArr.length)];} + if (url === undefined) {GM_notification({text: '❌ 所有更新地址均以试过,已无可用地址,请联系作者解决...', timeout: 5000}); return} GM_xmlhttpRequest({ url: url, method: 'GET',