mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +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:
parent
ab4a9ef528
commit
280dd8ddd6
@ -289,6 +289,7 @@ const cosmeticCandidatesFromFilterChoice = function(filterChoice) {
|
|||||||
needBody &&
|
needBody &&
|
||||||
paths.length !== 0 &&
|
paths.length !== 0 &&
|
||||||
paths[0].startsWith('#') === false &&
|
paths[0].startsWith('#') === false &&
|
||||||
|
paths[0].startsWith('body ') === false &&
|
||||||
(specificity & 0b1100) !== 0
|
(specificity & 0b1100) !== 0
|
||||||
) {
|
) {
|
||||||
paths.unshift('body > ');
|
paths.unshift('body > ');
|
||||||
|
Loading…
Reference in New Issue
Block a user