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

Discussion in 'Custom Filters' started by Aarix, Apr 28, 2019.

  1. Aarix

    Aarix New Member

    Joined:
    Mar 20, 2019
    Messages:
    4
    [​IMG]
    Goal is to block the Breaking news section of YouTube. Unable to get the syntax correct.

    [​IMG]

    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: Apr 28, 2019
  2. Blaz

    Blaz Moderator & Translator Staff Member Moderator

    Joined:
    Dec 21, 2014
    Messages:
    9,867
    Code:
    youtube.com###contents #dismissable #title-container:has(span#title:contains(Breaking news))
    
     
  3. Aarix

    Aarix New Member

    Joined:
    Mar 20, 2019
    Messages:
    4
    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.

    [​IMG]
     
  4. Blaz

    Blaz Moderator & Translator Staff Member Moderator

    Joined:
    Dec 21, 2014
    Messages:
    9,867
    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 likes this.
  5. Aarix

    Aarix New Member

    Joined:
    Mar 20, 2019
    Messages:
    4
    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.