mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 19:33:01 +01:00
This commit is contained in:
parent
15140e3aa7
commit
ed265e5f68
@ -760,15 +760,14 @@ var filterToDOMInterface = (function() {
|
||||
var fromPlainCosmeticFilter = function(filter) {
|
||||
let elems;
|
||||
try {
|
||||
elems = document.querySelectorAll(
|
||||
filter + ':not(#' + pickerRoot.id + ')'
|
||||
);
|
||||
elems = document.querySelectorAll(filter);
|
||||
}
|
||||
catch (e) {
|
||||
return;
|
||||
}
|
||||
const out = [];
|
||||
for ( const elem of elems ) {
|
||||
if ( elem === pickerRoot ) { continue; }
|
||||
out.push({ type: 'cosmetic', elem });
|
||||
}
|
||||
return out;
|
||||
|
Loading…
Reference in New Issue
Block a user