mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 00:42:45 +01:00
Fix picker use of extraneous body
in suggested filter
Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/jregqx/
This commit is contained in:
parent
ab4a9ef528
commit
280dd8ddd6
@ -289,6 +289,7 @@ const cosmeticCandidatesFromFilterChoice = function(filterChoice) {
|
||||
needBody &&
|
||||
paths.length !== 0 &&
|
||||
paths[0].startsWith('#') === false &&
|
||||
paths[0].startsWith('body ') === false &&
|
||||
(specificity & 0b1100) !== 0
|
||||
) {
|
||||
paths.unshift('body > ');
|
||||
|
Loading…
Reference in New Issue
Block a user