mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
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/
This commit is contained in:
parent
2b65f25dfd
commit
ebaa8a8bb2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user