mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue