Skip to content

Instantly share code, notes, and snippets.

@shello
Last active October 20, 2025 21:22
Show Gist options
  • Select an option

  • Save shello/3ef9752c4c77b78b81f6eb63c93ddfc9 to your computer and use it in GitHub Desktop.

Select an option

Save shello/3ef9752c4c77b78b81f6eb63c93ddfc9 to your computer and use it in GitHub Desktop.

Revisions

  1. shello revised this gist Oct 20, 2025. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions lean_youtube_filters.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    [Adblock Plus 2.0]
    ! Version: 202505062327
    ! Version: 202510202120
    ! Title: Lean YouTube filters
    ! Last modified: 06 May 2025 23:27 UTC
    ! Last modified: 20 Oct 2025 21:20 UTC
    ! Expires: 14 days (update frequency)
    ! License: https://creativecommons.org/publicdomain/zero/1.0/
    !
    @@ -26,6 +26,7 @@ youtube.com###secondary
    youtube.com###related
    youtube.com##.ytp-button.ytp-next-button
    youtube.com##.ytp-show-tiles.videowall-endscreen
    youtube.com##.ytp-fullscreen-grid-stills-container

    ! Remove end-card overlays
    ! Based on filters from: https://chitter.xyz/@byte/114453729929893016
  2. shello revised this gist May 6, 2025. 1 changed file with 9 additions and 2 deletions.
    11 changes: 9 additions & 2 deletions lean_youtube_filters.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    [Adblock Plus 2.0]
    ! Version: 202504251816
    ! Version: 202505062327
    ! Title: Lean YouTube filters
    ! Last modified: 25 Apr 2025 17:16 UTC
    ! Last modified: 06 May 2025 23:27 UTC
    ! Expires: 14 days (update frequency)
    ! License: https://creativecommons.org/publicdomain/zero/1.0/
    !
    @@ -27,6 +27,13 @@ youtube.com###related
    youtube.com##.ytp-button.ytp-next-button
    youtube.com##.ytp-show-tiles.videowall-endscreen

    ! Remove end-card overlays
    ! Based on filters from: https://chitter.xyz/@byte/114453729929893016
    youtube.com##.ytp-ce-element.ytp-ce-video
    youtube.com##.ytp-ce-element.ytp-ce-playlist
    youtube.com##.ytp-ce-element.ytp-ce-channel
    youtube.com##.ytp-ce-covering-overlay

    ! Remove the video+title from the autonav endscreen; the countdown and buttons
    ! remain visible to allow the user to stop autonav.
    youtube.com##.ytp-player-content .ytp-autonav-endscreen-link-container
  3. shello revised this gist Apr 25, 2025. 1 changed file with 38 additions and 0 deletions.
    38 changes: 38 additions & 0 deletions Lean YouTube Filters.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    # Lean YouTube Filters for uBlock Origin

    This set of filters helps to make YouTube become usable and less distracting if
    all you want is to watch videos and don't care about YouTube's own shit
    algorithmic discovery.

    ## Why?

    I don't use YouTube while logged in, and I only watch videos on YouTube when I
    find links somewhere else. For instance, I use my RSS Feed reader to subscribe
    to YouTube channels (yes, that's a thing). I've maintained this set of filters
    over a number of months/years to make my YouTube experience less annoying, and
    I figured other people might want to benefit from that breath of fresh air.

    ## What's being filtered?

    Check the commented [filter list file](#file-lean_youtube_filters-txt) for more
    info on what is being filtered. I tried to make it somewhat readable. Basically:
    homepage content, related videos, and elements that are only of use to users
    logged in (and thus push you into a login page if you accidentally click them).

    # Installation on [uBlock Origin](https://github.com/gorhill/uBlock)

    [Import](https://github.com/gorhill/uBlock/wiki/Filter-lists-from-around-the-web#import-3rd-party-filter-lists)
    the following URL into your Filter Lists:

    `https://gist.github.com/shello/3ef9752c4c77b78b81f6eb63c93ddfc9/raw/lean_youtube_filters.txt`

    And you're done.


    Alternatively copy the filter rules into [your own filters](https://github.com/gorhill/uBlock/wiki/Dashboard:-My-filters),
    picking what you want from it. You don't get the benefit from any updates I make
    to these rules, but then again you might not want some of them anyway.

    # License

    See [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/).
  4. shello revised this gist Apr 25, 2025. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions lean_youtube_filters.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    [Adblock Plus 2.0]
    ! Version: 202503191345
    ! Version: 202504251816
    ! Title: Lean YouTube filters
    ! Last modified: 19 Mar 2025 13:45 UTC
    ! Last modified: 25 Apr 2025 17:16 UTC
    ! Expires: 14 days (update frequency)
    ! License: https://creativecommons.org/publicdomain/zero/1.0/
    !
    @@ -25,4 +25,8 @@ youtube.com###subscribe-button
    youtube.com###secondary
    youtube.com###related
    youtube.com##.ytp-button.ytp-next-button
    youtube.com##.ytp-show-tiles.videowall-endscreen
    youtube.com##.ytp-show-tiles.videowall-endscreen

    ! Remove the video+title from the autonav endscreen; the countdown and buttons
    ! remain visible to allow the user to stop autonav.
    youtube.com##.ytp-player-content .ytp-autonav-endscreen-link-container
  5. shello created this gist Mar 19, 2025.
    28 changes: 28 additions & 0 deletions lean_youtube_filters.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    [Adblock Plus 2.0]
    ! Version: 202503191345
    ! Title: Lean YouTube filters
    ! Last modified: 19 Mar 2025 13:45 UTC
    ! Expires: 14 days (update frequency)
    ! License: https://creativecommons.org/publicdomain/zero/1.0/
    !
    ! This is a list of filters I maitain to make YouTube usable for me.
    ! It helps with making the site less distracting and annoying to interact
    ! with for users without who are logged out.
    ! Some of these filters might not be suitable for your needs.
    ! They work for me though. Take what you need.

    ! Hide the content of the homepage, it's all junk anyway.
    youtube.com###primary:matches-path(/^/$/)

    ! Hide elements that only have value for logged-in users
    ! such as comment action bar (thumbs up/down + reply action)
    ! and the "subscribe" button
    youtube.com##.ytd-comment-action-buttons-renderer
    youtube.com###simple-box > .ytd-comments-header-renderer
    youtube.com###subscribe-button

    ! Hide sidebar and anywhere else related videos are shown
    youtube.com###secondary
    youtube.com###related
    youtube.com##.ytp-button.ytp-next-button
    youtube.com##.ytp-show-tiles.videowall-endscreen