AdguardTeam / AdguardFilters

AdGuard Content Blocking Filters
https://adguard.com/
GNU General Public License v3.0
3.17k stars 631 forks source link

www.lemonde.fr #187026

Closed adguard-bot closed 1 month ago

adguard-bot commented 2 months ago

Issue URL (Annoyance)

https://www.lemonde.fr/international/video/2024/08/23/en-images-le-discours-de-kamala-harris-pour-clore-la-convention-democrate_6291494_3210.html

Comment

Hello,

about the dailymotion video on the screenshot, this video is in autoplay mode.

For all dailymotion videos on all sites, I would like : 1) stop autoplay + display the video title 2) if I click on it, it plays the video

Idem for all Youtube videos on all sites.

Screenshots

Screenshot 1 ![Screenshot 1](https://cdn.adguard.info/sitereports/itbduzpryzccc8kgcksgcog0g08ckkwmlvws92lu68.jpg?nc=1)

System configuration

Information Value
AdGuard product: AdGuard for Windows v7.18.1 (4778)
Browser: Chrome
License type: paid
AdGuard driver: WFP
Stealth mode: disabled
DNS filtering: server: System
filters: https://filters.adtidy.org/windows/filters/15.txt, User rules
Filters: Ad Blocking:
AdGuard Base

Privacy:
AdGuard Tracking Protection

Social Widgets:
AdGuard Social Media

Annoyances:
AdGuard Annoyances,
AdGuard Cookie Notices

Language-specific:
AdGuard French
Browsing Security: enabled
Browsing Security statistics: disabled
Userscripts: https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.user.js
https://userscripts.adtidy.org/release/popup-blocker/2.5/popupblocker.user.js
Other extensions used: no antivirus, no other adblocker

Import issue configuration (AdGuard for Windows)

Import

Pierre7855 commented 1 month ago

@AdamWr do you think you could solve this problem ?

zloyden commented 1 month ago

Tbh, it's better to use an extension or script for that, otherwise it may lead to incorrect blocking.

Pierre7855 commented 1 month ago

For the URL I give you (lemonde.fr), could you give me a user filter that I could enter in my filters, in order to stop autoplay on the dailymotion video on this page ?

zloyden commented 1 month ago

You can try this rule or create your own.

dailymotion.com#%#!function(){let e=!1,t=!0,o=0;const l={apply:(l,p,n)=>{const a=(new Error).stack;return a.match(/_.{1,5} \(/)||a.match(/at .. \(http/)?(e=!0,Reflect.apply(l,p,n)):t&&!e?(t=!(o>2),o+=1,Promise.reject(new window.DOMException("Not allowed play","NotAllowed"))):Reflect.apply(l,p,n)}};window.HTMLMediaElement.prototype.play=new Proxy(window.HTMLMediaElement.prototype.play,l)}();
Pierre7855 commented 1 month ago

Thank you Zloyden for the filter you give me. It works perfectly on lemonde.fr in order to stop dailymotion autoplay.

You was also talking about using an extension in order to stop autoplay. What extension do you advise me for Chrome (that could be in "manifest V3") ?