“Channel trailer”, like the video that plays when go to some channels?
Because cosmetics will only hide the video, they won’t block it, and then the audio would still play in the background if the video autoplays.
Cosmetics only inject a css property “display: none !important” to the element.
I used youtube.com##ytd-channel-video-player-renderer.style-scope which hides what I think is what you mean channel trailers, but since I am not signed in or anything, I don’t know if it breaks anything, and the video still plays unless I set youtube to block the autoplay and then that means clicking every video.
But yeah, only Network filters block, but since they are youtube videos, you can’t block them that way either, you would need something that can modify things, like an extension or userscript, since they are able to inject any JS or stop things and all that.
But talking about Cosmetics and Element pickers, if you still wanted to use them, it is better if you use use DevTools anyway and manually make your Cosmetics because you can pick any attribute in the HTML element, which element pickers are not smart about.
And Brave can use any native css selector https://www.w3schools.com/cssref/css_selectors.asp
Not all the selectors work or are useful for an adblocker from the : ones, usually the ones p: are the ones that would make more sense to use.
In some cases using these selectors won’t be enough, so we have to wait for Brave to support Procedural Cosmetics, which a Brave’s team member said on on reddit it is coming soon:
@anon57438784 Yeah that’s what I mean. That’s about where I gave up, finding a way to hide the trailer but it kept to autoplaying in the background. I’ll look around for userscripts; if I’m understanding this right that’s sounding the cleanest way to get rid of channel trailers. Thank you very much!
Yes. Cosmetics only hide elements so they will never be able to do what you want.
So you need to use some Javascript-injection that can really change the behavior of things in a webpage, maybe a youtube extension can do it or Tampermonkey with a userscript. Because the problem will always be the autoplay, maybe an extension or userscript can stop it and then use cosmetics to hide it, but cosmetics alone are not for blocking.
Similar but different, but it shows there are many extensions available just to do that. I didn’t see any userscript for this though. so it seems only extensions are useful.