1
1
mirror of https://github.com/gorhill/uBlock.git synced 2025-10-05 21:32:39 +02:00

[mv3] Minor code change

This commit is contained in:
Raymond Hill
2025-10-03 14:45:46 -04:00
parent 5bcdf3731d
commit 41a65315f9

View File

@@ -310,11 +310,14 @@ function registerProcedural(context) {
js.push('/js/scripting/css-procedural.js');
const excludeMatches = [];
if ( none.has('all-urls') === false ) {
excludeMatches.push(...ut.matchesFromHostnames(none));
}
if ( basic.has('all-urls') === false ) {
excludeMatches.push(...ut.matchesFromHostnames(basic));
if ( none.has('all-urls') === false && basic.has('all-urls') === false ) {
const toExclude = [
...ut.matchesFromHostnames(none),
...ut.matchesFromHostnames(basic),
];
for ( const hn of toExclude ) {
excludeMatches.push(hn);
}
}
const registered = before.get('css-procedural');