mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
code review
This commit is contained in:
parent
d3060588a6
commit
d376c69e2f
@ -412,9 +412,9 @@ var elementsFromFilter = function(filter) {
|
||||
// One idea is to normalize all a[href] on the page, but for now I will
|
||||
// wait and see, as I prefer to refrain from tampering with the page
|
||||
// content if I can avoid it.
|
||||
if ( filter.slice(0, 2) === '##' ) {
|
||||
if ( filter.lastIndexOf('##', 0) === 0 ) {
|
||||
try {
|
||||
out = document.querySelectorAll(filter.replace('##', ''));
|
||||
out = document.querySelectorAll(filter.slice(2));
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user