raingart / Nova-YouTube-extension

Apache License 2.0
198 stars 9 forks source link

Persistent Background Advertisements on YouTube #118

Closed zkisaboss closed 7 months ago

zkisaboss commented 7 months ago

I hear advertisements playing in the background of my YT tabs. The problem occurs when loading my home feed and persists after closing and re-opening my tabs. The issue resolved itself after re-opening my browser.

raingart commented 7 months ago

if you're talking about the "Autopause when switching tabs" plugin, then yes, it sometimes skips playback but I only tested with parameters "Autoplay on tab focus": "once for new tab"

If we are talking about why does Nova not block ads? that is, it is not due to the fact that I condemn blockers, but the fact that blocking advertising is technically difficult. The only “correct” way is to block and modify requests and data from them. uBlock origin handles this relatively well when using the built-in rules

You can test other scripts, maybe they will help you. But they are primitive, CSS hiding and emulation of closing advertising through clicks. But in the reviews of some of them everyone is happy

https://github.com/raingart/Nova-YouTube-extension/blob/master/plugins/player/ad-skip-button.js#L40-L44

The "Ad intro skip" plugin does not remove advertising as such. And clicks on the skip button that appears in the lower right corner. I don't know if this is advertising now. The plugin is probably outdated

Chrome used to have a flag --autoplay-policy=user-gesture-required that blocked autoplay of videos.

raingart commented 7 months ago

@bbksleazy I received your last message (you already sent a new one with sound). I didn't have such problems. I'm not sure what exactly the problem is. Can you send me your settings file? @zkisaboss and canyou too? So that I can compare the list of enabled plugins to determine which one is causing the failure.

A couple of years ago, Youtube began to hide some pages as an optimization and to reduce the number of requests to its servers. That is, when moving from one type of page to another, some elements are replaced by others. And Nova sometimes affected unnecessary hidden elements. A hidden instance of the player may be playing.

This is currently the most likely cause of the problem.

bbksleazy commented 7 months ago

@raingart nvm it was a script called "Youtube adblock replace with embed" and having multiple anti-adblocks and adskippers on at the same time from tampermonkey causing the issue. So speaking for myself, it was just other scripts in tamper monkey

raingart commented 7 months ago

@bbksleazy oh, thanks for clarifying

By the way, if your script gets rid of advertising by replacing the player with an iframe version, then this is the reason. This is the dumbest way that uses low-quality scripts