Skip to content

Commit cd21a0b

Browse files
committed
MV3 implicit Rule priority is 1, not 0
Related issue: - uBlockOrigin/uBOL-home#30
1 parent 82c7319 commit cd21a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/static-net-filtering.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ class FilterImportant {
769769
}
770770

771771
static dnrFromCompiled(args, rule) {
772-
rule.priority = (rule.priority || 0) + 10;
772+
rule.priority = (rule.priority || 1) + 10;
773773
}
774774

775775
static keyFromArgs() {
@@ -4416,7 +4416,7 @@ FilterContainer.prototype.dnrFromCompiled = function(op, context, ...args) {
44164416
}
44174417
break;
44184418
case 'redirect-rule': {
4419-
let priority = rule.priority || 0;
4419+
let priority = rule.priority || 1;
44204420
let token = rule.__modifierValue;
44214421
if ( token !== '' ) {
44224422
const match = /:(\d+)$/.exec(token);

0 commit comments

Comments
 (0)