mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue