Skip to content

Commit 477beae

Browse files
committed
优化 [更新外置翻页规则] 功能
1 parent 7710e3e commit 477beae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Autopage.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,7 @@ function: {
15161516

15171517
function getRulesUrl_(n = false, url) {
15181518
if (n) {url = urlArr2[Math.floor(Math.random()*urlArr2.length)];} else {url = urlArr[Math.floor(Math.random()*urlArr.length)];}
1519+
if (url === undefined) {GM_notification({text: '❌ 所有更新地址均以试过,已无可用地址,请联系作者解决...', timeout: 5000}); return}
15191520
GM_xmlhttpRequest({
15201521
url: url,
15211522
method: 'GET',

0 commit comments

Comments
 (0)