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) {
|
static dnrFromCompiled(args, rule) {
|
||||||
rule.priority = (rule.priority || 0) + 10;
|
rule.priority = (rule.priority || 1) + 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
static keyFromArgs() {
|
static keyFromArgs() {
|
||||||
|
@ -4416,7 +4416,7 @@ FilterContainer.prototype.dnrFromCompiled = function(op, context, ...args) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'redirect-rule': {
|
case 'redirect-rule': {
|
||||||
let priority = rule.priority || 0;
|
let priority = rule.priority || 1;
|
||||||
let token = rule.__modifierValue;
|
let token = rule.__modifierValue;
|
||||||
if ( token !== '' ) {
|
if ( token !== '' ) {
|
||||||
const match = /:(\d+)$/.exec(token);
|
const match = /:(\d+)$/.exec(token);
|
||||||
|
|
Loading…
Reference in New Issue