Fix picker use of extraneous `body` in suggested filter

Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/jregqx/
This commit is contained in:
Raymond Hill 2020-11-11 09:39:07 -05:00
parent ab4a9ef528
commit 280dd8ddd6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 0 deletions

View File

@ -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 > ');