From ac25b2d6f362b57536d526b6511efed25d0409ee Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 4 Feb 2023 08:21:17 -0500 Subject: [PATCH] Fix regression of exception procedural cosmetic filters Related feedback/commit: - https://github.com/gorhill/uBlock/commit/bc19a938152a7839079cb189a8d5ce660ed71d0b#commitcomment-99271464 --- src/js/cosmetic-filtering.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/cosmetic-filtering.js b/src/js/cosmetic-filtering.js index ab89bd3d9..0273e5cde 100644 --- a/src/js/cosmetic-filtering.js +++ b/src/js/cosmetic-filtering.js @@ -860,6 +860,11 @@ FilterContainer.prototype.retrieveSpecificSelectors = function( if ( proceduralSet.size !== 0 ) { for ( const json of proceduralSet ) { const pfilter = JSON.parse(json); + if ( exceptionSet.has(json) ) { + proceduralSet.delete(json); + out.exceptedFilters.push(json); + continue; + } if ( exceptionSet.has(pfilter.raw) ) { proceduralSet.delete(json); out.exceptedFilters.push(pfilter.raw);