uBlockOrigin / uBlock-issues

This is the community-maintained issue tracker for uBlock Origin
https://github.com/gorhill/uBlock
878 stars 76 forks source link

merkur.de: No large media elements issue (?) #1984

Open amastm opened 2 years ago

amastm commented 2 years ago

Prerequisites

URL address of the web page

https://www.merkur.de/politik/bundespraesidenten-wahl-ergebnis-steinmeier-live-heute-merkel-bundesversammlung-union-news-zr-91344892.html

Category

popups

Describe the issue

Unwished Video starts playing despite media content < 50kb should be blocked by set rule

Screenshot(s)

Screenshot(s)

Configuration

```yaml uBlock Origin: 1.41.2 Chromium: 94 filterset (summary): network: 92992 cosmetic: 167200 scriptlet: 21422 html: 0 listset (total-discarded, last updated): added: https://www.i-dont-care-about-cookies.eu/abp/: 24330-3, 2d.14h.6m DEU-0: 5342-0, 3m adguard-annoyance: 50178-1545, 1d.13h.42m adguard-social: 15773-773, 1d.13h.41m fanboy-annoyance: 60649-11682, 6d.10m fanboy-cookiemonster: 22227-22227, 6d.11m fanboy-social: 23163-23155, 1d.13h.43m fanboy-thirdparty_social: 69-21, 6d.12m ublock-annoyances: 4395-263, 1d.13h.44m default: user-filters: 0-0, never easylist: 63281-53, 1d.13h.52m easyprivacy: 26549-226, 1d.13h.51m plowe-0: 3679-809, 6d.14m ublock-abuse: 77-0, 1d.13h.50m ublock-badware: 3930-74, 1d.13h.49m ublock-filters: 30223-475, 1d.13h.45m ublock-privacy: 197-10, 1d.13h.48m ublock-unbreak: 1709-47, 1d.13h.47m urlhaus-1: 7360-0, 4m filterset (user): [empty] trustedset: added: [array of 3 redacted] switchRuleset: added: [array of 3 redacted] modifiedUserSettings: advancedUserEnabled: true modifiedHiddenSettings: [none] supportStats: allReadyAfter: 412 ms (selfie) maxAssetCacheWait: 448 ms popupPanel: blocked: 7 no-large-media: true no-popups: true blockedDetails: glomex.com: 5 ioam.de: 1 k5a.io: 1 ```
mapx- commented 2 years ago

If the media elements do not have a Content-Length header present, then this switch will fail to block the said media elements by size.

https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-large-media-elements

Procyon-b commented 2 years ago

Can I suggest a very good extension to block auto-play on chrome: "AutoplayStopper" (in one word)

mapx- commented 2 years ago

@gorhill

gorhill commented 2 years ago

It's because the video is streamed using xhr/fetch rather than through a media resource. uBO would have to also look at content-type of xhr requests to find out whether it's something to be filtered as media.