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
1 changed files with 9 additions and 0 deletions

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;
};