From 0cd019ec7d12524931234bde2c769f113795ef92 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 27 Sep 2022 09:32:58 -0400 Subject: [PATCH] Fix preview of :style()-based cosmetic filters --- src/js/scriptlets/epicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/scriptlets/epicker.js b/src/js/scriptlets/epicker.js index c16f5b063..875839b81 100644 --- a/src/js/scriptlets/epicker.js +++ b/src/js/scriptlets/epicker.js @@ -756,7 +756,7 @@ const filterToDOMInterface = (( ) => { try { const o = JSON.parse(raw); elems = vAPI.domFilterer.createProceduralFilter(o).exec(); - style = o.action === undefined || o.action[0] !== ':style' + style = o.action === undefined || o.action[0] !== 'style' ? vAPI.hideStyle : o.action[1]; } catch(ex) {