We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e767ace commit 7d3f26dCopy full SHA for 7d3f26d
Pagetual/pagetual.user.js
@@ -9157,10 +9157,15 @@
9157
if (ruleImportUrlReg.test(href) || inConfig) {
9158
let importing = false;
9159
if (!inUpdate && rulesData.uninited) {
9160
- setTimeout(() => {
9161
- if (!inUpdate && !importing) showTips(i18n("firstAlert"));
9162
- }, 3000);
9163
- showTips(i18n("firstAlert"));
+ let showTimes = 0;
+ let showFirstAlert = () => {
+ if (inUpdate || importing || ++showTimes > 5) return;
+ showTips(i18n("firstAlert"), configPage[0], 2000);
9164
+ setTimeout(() => {
9165
+ showFirstAlert();
9166
+ }, 3000);
9167
+ };
9168
9169
}
9170
let defaultOption = document.querySelector('#discussion_rating_4');
9171
if (defaultOption) defaultOption.checked = true;
0 commit comments