mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Support generic exception filter for HTML filtering
Related feedback:
- fa5e4b7769 (commitcomment-93202819)
This commit is contained in:
parent
a31f74325d
commit
f78fb513a1
1 changed files with 8 additions and 0 deletions
|
@ -327,6 +327,14 @@ htmlFilteringEngine.compile = function(parser, writer) {
|
|||
|
||||
writer.select('HTML_FILTERS');
|
||||
|
||||
// Only exception filters are allowed to be global.
|
||||
if ( parser.hasOptions() === false ) {
|
||||
if ( exception ) {
|
||||
writer.push([ 64, '', 1, compiled ]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Mind negated hostnames, they are currently discarded.
|
||||
|
||||
for ( const { hn, not, bad } of parser.extOptions() ) {
|
||||
|
|
Loading…
Reference in a new issue