mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
fix #2519
This commit is contained in:
parent
c2208f8f74
commit
582edd5e62
@ -1061,6 +1061,15 @@ var candidateFromFilterChoice = function(filterChoice) {
|
||||
}
|
||||
joiner = ' > ';
|
||||
}
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/2519
|
||||
if (
|
||||
slot === filters.length &&
|
||||
document.querySelectorAll(selector).length > 1
|
||||
) {
|
||||
selector = 'body > ' + selector;
|
||||
}
|
||||
|
||||
return '##' + selector;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user