1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00
This commit is contained in:
gorhill 2017-04-08 10:40:38 -04:00
parent c2208f8f74
commit 582edd5e62
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1061,6 +1061,15 @@ var candidateFromFilterChoice = function(filterChoice) {
}
joiner = ' > ';
}
// https://github.com/gorhill/uBlock/issues/2519
if (
slot === filters.length &&
document.querySelectorAll(selector).length > 1
) {
selector = 'body > ' + selector;
}
return '##' + selector;
};