Skip to content

Commit

Permalink
MV3 implicit Rule priority is 1, not 0
Browse files Browse the repository at this point in the history
Related issue:
- uBlockOrigin/uBOL-home#30
  • Loading branch information
gorhill committed Mar 3, 2023
1 parent 82c7319 commit cd21a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/static-net-filtering.js
Expand Up @@ -769,7 +769,7 @@ class FilterImportant {
}

static dnrFromCompiled(args, rule) {
rule.priority = (rule.priority || 0) + 10;
rule.priority = (rule.priority || 1) + 10;
}

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

0 comments on commit cd21a0b

Please sign in to comment.