mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-22 15:06:57 +00:00
优化 [更新外置翻页规则] 功能(加了个提醒)
This commit is contained in:
@@ -1427,6 +1427,7 @@ function: {
|
||||
//'https://github.do/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json'
|
||||
|
||||
if (update) { // 手动更新(或安装后首次更新)
|
||||
GM_notification({text: '🔄 更新外置翻页规则中,请勿操作网页...', timeout: 3000});
|
||||
getRulesUrl_(true);
|
||||
} else if (parseInt(+new Date()/1000) - GM_getValue('menu_ruleUpdateTime', 0) > 259200) { // 自动更新,距离上次检查更新超过 3 天,则立即更新规则
|
||||
getRulesUrl_();
|
||||
|
||||
Reference in New Issue
Block a user