1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 10:09:38 +02: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:
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

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