youtube icon indicating copy to clipboard operation
youtube copied to clipboard

đź’ˇ Add option to hide `Sponsored Videos` on Home

Open vippium opened this issue 1 year ago • 12 comments

⚬ PROBLEM: Currently, there is no option to block or remove these sponsored videos, which is also a type of ad on home page, taking unnecessary space.

⚬ SOLUTION:
Add option to remove them completely whithout leaving any blank space behind. The home page should only have videos (no sponsored or blank space behind after removal). I used many scripts to remove them, but they leave a blank space as residue.

⚬ RELEVANCE / SCOPE: Yes, it'll be very useful for everyone, as noone love these sponsored (instead of any alien who came from another planet, surely)

⚬ "SIDE EFFECTS":
No side effects

Thank you!

SHORT Table (Summary)
Problem
Solution
Alternatives
Scope
Side effects
Context

vippium avatar Aug 01 '25 16:08 vippium

Hi , I would like to wok on this , please assign to me.

Mrigank118 avatar Aug 02 '25 18:08 Mrigank118

I'd like to work on this issue. Please assign it to me.

mpatra193 avatar Aug 02 '25 22:08 mpatra193

Note: This PR addresses #3073, not #3075. The earlier reference was a typo.

mpatra193 avatar Aug 03 '25 08:08 mpatra193

Note: This PR addresses #3073, not #3075. The earlier reference was a typo.

If possible, can you create a JS script on Greasyfork to hide all the ads and sponsored videos? It'll add an addition for users who uses tampermonkey for other additional scripts.

vippium avatar Aug 03 '25 08:08 vippium

Thanks for pointing that out! I’ve corrected the reference in the PR description to clearly mention #3073.

Also, I appreciate the suggestion regarding a Greasemonkey/Tampermonkey script. That’s a great idea to support users who prefer custom user scripts. Once this feature is merged, I’d be happy to explore creating a complementary script for Greasyfork to hide ads and sponsored videos directly.

Let me know if there are any specific requirements or preferences you'd want to see in that script!

mpatra193 avatar Aug 03 '25 08:08 mpatra193

Let me know if there are any specific requirements or preferences you'd want to see in that script!

Nothing much, just try to block ads and sponsored completely, instead of skipping them. 1-2 sec delay is manageable. Also, it'll block all type of ads, banners, sponsored.

Bcoz there are so many scripts which only skips the ads. And most of the scripts are only for skipping the video. And if any script have a proper block feature, then, the author clutters the scripts with useless things like free download button added, blah blah blah.

So try to keep it simple and minimal.

vippium avatar Aug 03 '25 08:08 vippium

As an optional enhancement for users who rely on Tampermonkey, I’ve also published a small companion userscript on GreasyFork that completely blocks YouTube ads and sponsored videos (rather than just skipping them):

🔗 YouTube: Block All Ads & Sponsored Videos – GreasyFork

đź§© It's:

Minimal and clean (no UI clutter)

Blocks all types of YouTube ads (player ads, overlays, home page sponsored content, etc.)

Leaves no layout gaps

Works with infinite scroll / dynamic loading

I thought this might be helpful for users who want more aggressive filtering via userscripts in addition to the extension settings.

mpatra193 avatar Aug 03 '25 09:08 mpatra193

Let me test this

It keeps the layout to be refreshed every second. means the home layout is not stable.

also, ads are still there.

Image

vippium avatar Aug 03 '25 11:08 vippium

Okay, but it does hide the videos that are labelled as sponsored or promoted that appear on the feed and homepage. If you are talking about the ads that appear during the video, then it won't work because I haven't added the script for that.

the image below is before I enabled my TamperMonkey extension for hiding sponsored videos on YouTube:

Image

the image below is after I enabled my TamperMonkey extension for hiding sponsored videos on YouTube:

Image

mpatra193 avatar Aug 03 '25 13:08 mpatra193

If you want to remove the youtube ads that appear while playing youtube videos, I will try to incorporate it to my version.

mpatra193 avatar Aug 03 '25 13:08 mpatra193

https://greasyfork.org/en/scripts/544493-youtube-block-all-sponsored-videos-on-home-page-stable-layout This userscript removes sponsored videos and some visual ad elements from YouTube’s homepage, search results, and feed.

It focuses on cleaning up the visible layout, giving you a less cluttered experience, especially by eliminating videos labeled as “Sponsored”, “Ad”, or “Promotion”.

It doesn’t block or skip actual video ads (those before/during videos). YouTube serves those ads through media streams and network-level requests. Tampermonkey and userscripts in general can’t block or intercept network traffic,they only work on the page after it’s loaded. So by the time this script runs, the ad video is already playing.

If you're seeing pre-roll or mid-roll ads, that’s expected, you'd need something like uBlock Origin to block those at the request level.

mpatra193 avatar Aug 03 '25 15:08 mpatra193

Overall, this script is working as intended for UI cleanup, and it's lightweight enough to avoid layout flicker or heavy DOM polling. This script handles the visual clutter well, but for full ad blocking (like pre-roll video ads), using it alongside something like uBlock Origin can offer the best results.

mpatra193 avatar Aug 03 '25 15:08 mpatra193