From a3a2ac5ec09fdc088c94df6391d153adb4143d28 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 9 Aug 2023 08:26:35 -0400 Subject: [PATCH] Nothing can come after action operator in procedural cosmetic filters Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/2760 --- src/js/static-filtering-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index 9d312c26f..a84112c03 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -3479,11 +3479,11 @@ class ExtSelectorCompiler { const prelude = []; const tasks = []; for ( const part of parts ) { + if ( out.action !== undefined ) { return; } const { data } = part; switch ( data.type ) { case 'ActionSelector': { if ( details.noaction ) { return; } - if ( out.action !== undefined ) { return; } if ( prelude.length !== 0 ) { if ( tasks.length === 0 ) { out.selector = prelude.join('');