Skip to content

Commit 0529d84

Browse files
committed
Update pagetual.user.js
1 parent 220eb1e commit 0529d84

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Pagetual/pagetual.user.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7049,7 +7049,8 @@
70497049
blacklistInput.style.height = "500px";
70507050
blacklistInput.style.display = "none";
70517051
blacklistInput.spellcheck = false;
7052-
blacklistInput.placeholder = "http://*.xxx.com/*/y\n/^https?://.*\\.xxx\\.com/i \t\t<= Regexp\n//http://*.aaa.com/ \t\t<= Disable\n/*http://*.bbb.com\nhttp://*.ccc.com*/ \t\t<= Block comment";
7052+
blacklistInput.placeholder = "http://*.xxx.com/*/y\n\n/^https?://.*\\.xxx\\.com/i \t\t<= Regexp\n\n// http://*.aaa.com/ \t\t<= Disable\n\n/* http://*.bbb.com\nhttp://*.ccc.com\nhttp://*.ddd.com */ \t\t<= Block comment";
7053+
blacklistInput.title = blacklistInput.placeholder;
70537054
blacklistInput.value = rulesData.blacklist ? rulesData.blacklist.join("\n") : "";
70547055
let blacklistBtn = document.createElement("button");
70557056
blacklistBtn.innerText = i18n("editBlacklist");
@@ -7463,6 +7464,11 @@
74637464
forceState == 1;
74647465
return;
74657466
}
7467+
} else if (curGlob.indexOf("^") == 0) {
7468+
if (new RegExp(curGlob).test(href)) {
7469+
forceState == 1;
7470+
return;
7471+
}
74667472
} else if (globMatch(curGlob, href)) {
74677473
forceState == 1;
74687474
return;

0 commit comments

Comments
 (0)