mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Block media elements unconditionally when max size is set to 0
Related feedback: https://old.reddit.com/r/uBlockOrigin/comments/1h7x9nj/
This commit is contained in:
parent
b3a51d0018
commit
36db7f8327
1 changed files with 3 additions and 1 deletions
|
|
@ -1063,7 +1063,9 @@ const PageStore = class {
|
|||
this.largeMediaTimer.on(500);
|
||||
}
|
||||
const size = headers.contentLength;
|
||||
if ( isNaN(size) ) { return 0; }
|
||||
if ( isNaN(size) ) {
|
||||
return µb.userSettings.largeMediaSize === 0 ? 1 : 0;
|
||||
}
|
||||
if ( (size >>> 10) < µb.userSettings.largeMediaSize ) { return 0; }
|
||||
this.largeMediaCount += 1;
|
||||
this.largeMediaTimer.on(500);
|
||||
|
|
|
|||
Loading…
Reference in a new issue