File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 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");
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;
You can’t perform that action at this time.
0 commit comments