Skip to content

Commit 7d3f26d

Browse files
committed
Update pagetual.user.js
1 parent e767ace commit 7d3f26d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Pagetual/pagetual.user.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9157,10 +9157,15 @@
91579157
if (ruleImportUrlReg.test(href) || inConfig) {
91589158
let importing = false;
91599159
if (!inUpdate && rulesData.uninited) {
9160-
setTimeout(() => {
9161-
if (!inUpdate && !importing) showTips(i18n("firstAlert"));
9162-
}, 3000);
9163-
showTips(i18n("firstAlert"));
9160+
let showTimes = 0;
9161+
let showFirstAlert = () => {
9162+
if (inUpdate || importing || ++showTimes > 5) return;
9163+
showTips(i18n("firstAlert"), configPage[0], 2000);
9164+
setTimeout(() => {
9165+
showFirstAlert();
9166+
}, 3000);
9167+
};
9168+
showFirstAlert();
91649169
}
91659170
let defaultOption = document.querySelector('#discussion_rating_4');
91669171
if (defaultOption) defaultOption.checked = true;

0 commit comments

Comments
 (0)