From cd21a0bb9dc5f47ef096c0a3fb7de1e6b3bfe00f Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 3 Mar 2023 16:52:28 -0500 Subject: [PATCH] MV3 implicit Rule priority is 1, not 0 Related issue: - https://github.com/uBlockOrigin/uBOL-issues/issues/30 --- src/js/static-net-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 9bdcb55fe..39faa27c3 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -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);