Skip to content

Commit

Permalink
noHtml: only skip current rule's "html"
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Sep 13, 2024
1 parent c652469 commit 64c59c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@ const RuleMatcher = {
return m;
const {r, s} = rule;
let hasS = s != null;
h = !noHtml && (r || hasS) && rule.html && (html || (html = node.outerHTML));
h = !(noHtml && rule === ai.rule) && (r || hasS) && rule.html && (html || (html = node.outerHTML));
if (r) {
m = h ? r.exec(h) : url && r.exec(url);
} else {
Expand Down

0 comments on commit 64c59c4

Please sign in to comment.