Closed dhowe closed 10 months ago
On current master I couldn't reproduce the ad playing, but adnauseam is still being detected. Suspecting its yet again related to scriptlets
After a lot of testing I was able to isolate the issue, and the uBlock rule that seems the be fixing the ad detection is:
@@||dailymotion.com^$ghide
Which for some reason doesn't seem to be working in AdNauseam, which is a really critical bug. I'm looking now into the staticNetFilteringEngine system to see the difference with between Adn and uBlock.
as reference:
https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#generichide
generichide: When used in an exception filter, it will turn off generic cosmetic filtering on matching pages. Generic cosmetic filters are hiding filters that apply to all pages - ##.ad-class.
Since AdNauseam uses a separate cosmetic filtering for ad collection, we are missing the exceptions such as @@||dailymotion.com^$ghide
and hiding generic things we shouldn't, making some ad-block-detection scripts detect us when they shouldn't. Possibly causing some pages to break as well.
Enabled setting noGenericCosmeticFiltering
which makes generichide
exception possible. I didn't understand before why this was needed, but now I do... Tested and dailymotion not detecting AdNauseam any longer.
Closed the merge for now. It seems that enabling generichide
in adnauseam, also causes more ads to appear on websites. Such as in https://bluemedialink.online/
submited on https://github.com/dhowe/AdNauseam/issues/2486.
...
So the matter is:
generichide
is disabled in adnauseam, adnauseam can get detected on some websites.@@||dailymotion.com^$ghide
, adnauseam doesn't get detected ads are more likely to appear on those websites, making it necessary for strict-mode to be enabled most likely.Possible solutions
a. auto-enable strict-mode on pages with generichide exception
b. let the ads appear and the user set the strict mode themselves
c. check all websites with generichide
domain exception rules and deal with the ads appearing individually each one (seems not practical, 1000+ entries)
d. keep generichide
disabled and create individual exceptions to avoid AdNauseam to get detected
Seems that option D might be the best solution. The following exception of a generic rule on dailymotion.com also solves the detection:
dailymotion.com#@#.ad_box
Submited PR again with the filter exception instead:
Fixed, closing
Video ads playing (no image, only sound) on DailyMotion on Chrome. Doesn't happen with uBlock.
Note: on Firefox I see the 2nd image below instead
This is an AdNauseam-specific issue.
I have tried to reproduce the issue when...
URL(s) where the issue occurs.
https://www.dailymotion.com/video/x6j5k2h
Your location/country.
US
Screenshot(s)