mirror of https://github.com/gorhill/uBlock.git
MV3 implicit Rule priority is 1, not 0
Related issue: - https://github.com/uBlockOrigin/uBOL-issues/issues/30
This commit is contained in:
parent
82c73199e4
commit
cd21a0bb9d
|
@ -769,7 +769,7 @@ class FilterImportant {
|
|||
}
|
||||
|
||||
static dnrFromCompiled(args, rule) {
|
||||
rule.priority = (rule.priority || 0) + 10;
|
||||
rule.priority = (rule.priority || 1) + 10;
|
||||
}
|
||||
|
||||
static keyFromArgs() {
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue