Youtube: Need assistance blocking a div based on a phrase inside of it. (Breaking News)

Aarix

New Member

Goal is to block the Breaking news section of YouTube. Unable to get the syntax correct.



I want "youtube.com###contents > ytd-shelf-renderer.style-scope.ytd-item-section-renderer" blocked only if it has that bottom line of code has Breaking News in it.

Appreciate any assistance in advance.
 
Last edited:

Blaz

Moderator & Translator
Staff member
Moderator
Code:
youtube.com###contents #dismissable #title-container:has(span#title:contains(Breaking news))
 

Aarix

New Member
Code:
youtube.com###contents #dismissable #title-container:has(span#title:contains(Breaking news))
I appreciate the help but that seemed to have only removed the title, now the element. Let me know if I can make it easier on you.

 

Blaz

Moderator & Translator
Staff member
Moderator
That section is sadly not showing in my view.

Try this:

Code:
youtube.com###contents > .ytd-item-section-renderer:has(span#title:contains(Breaking news))
 

Aarix

New Member
That section is sadly not showing in my view.

Try this:

Code:
youtube.com###contents > .ytd-item-section-renderer:has(span#title:contains(Breaking news))
I think THAT did it. Disabled for 30 seconds and it appeared then didn't. Thank you immensely. That saved me a LOT of trouble.
 
Top