mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Loosen requirements to qualify for strict-blocking
This commit is contained in:
parent
ac28ab58c8
commit
595f9fd469
1 changed files with 2 additions and 3 deletions
|
|
@ -405,9 +405,8 @@ function toStrictBlockRule(rule, out) {
|
|||
const { resourceTypes } = condition;
|
||||
if ( resourceTypes === undefined ) {
|
||||
if ( condition.requestDomains === undefined ) { return; }
|
||||
} else {
|
||||
if ( resourceTypes.length !== 1 ) { return; }
|
||||
if ( resourceTypes[0] !== 'main_frame' ) { return; }
|
||||
} else if ( resourceTypes.includes('main_frame') === false ) {
|
||||
return;
|
||||
}
|
||||
let regexFilter;
|
||||
if ( condition.urlFilter ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue