From ebaa8a8bb28aef043a68c99965fe6c128a3fe5e4 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 13 Jan 2022 09:24:04 -0500 Subject: [PATCH] Do not select background images as best candidate in picker Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/s2lrm0/picker_cant_select_and_block_this/ --- 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 4f4390613..138c93217 100644 --- a/src/js/scriptlets/epicker.js +++ b/src/js/scriptlets/epicker.js @@ -336,7 +336,7 @@ const netFilterFromElement = function(elem) { const pattern = mergeStrings(urls); - if ( bestCandidateFilter === null ) { + if ( bestCandidateFilter === null && elem.matches('html,body') === false ) { bestCandidateFilter = { type: 'net', filters: candidates,