mirror of https://github.com/gorhill/uBlock.git
Support generic exception filter for HTML filtering
Related feedback:
- fa5e4b7769 (commitcomment-93202819)
This commit is contained in:
parent
a31f74325d
commit
f78fb513a1
|
@ -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 New Issue