1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 19:33:01 +01:00
Raymond Hill 2018-12-06 08:50:13 -05:00
parent 15140e3aa7
commit ed265e5f68
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

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