Skip to content

Instantly share code, notes, and snippets.

@abstraction
Last active June 8, 2024 17:16
Show Gist options
  • Save abstraction/5fd7486f5a4bf10338cfe46190b5d006 to your computer and use it in GitHub Desktop.
Save abstraction/5fd7486f5a4bf10338cfe46190b5d006 to your computer and use it in GitHub Desktop.

Revisions

  1. abstraction revised this gist Jun 8, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ublock-filters.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ! Title: uBlock Filters
    ! Version: 0.0.1
    ! Expires: 1 weeks (update frequency)
    ! Homepage:
    ! Homepage: https://gist.github.com/abstraction/5fd7486f5a4bf10338cfe46190b5d006/raw/fe2e9c68d703fcf9f5074e397c26b97a303a884c/ublock-filters.txt
    ! ----------------------------------------------------------------------------------
    ! ----------------------------------------------------------------------------------
    ! Hide Login with Google annoyance
  2. abstraction created this gist Jun 8, 2024.
    83 changes: 83 additions & 0 deletions ublock-filters.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,83 @@
    ! Title: uBlock Filters
    ! Version: 0.0.1
    ! Expires: 1 weeks (update frequency)
    ! Homepage:
    ! ----------------------------------------------------------------------------------
    ! ----------------------------------------------------------------------------------
    ! Hide Login with Google annoyance
    ! https://news.ycombinator.com/item?id=37041917
    ##iframe[src^="https://accounts.google.com/gsi/iframe/select"]
    ||accounts.google.com/gsi/iframe/select^$third-party
    ! ----------------------------------------------------------------------------------
    ! Hide YouTube Homepage
    ! https://www.reddit.com/r/uBlockOrigin/comments/6zf6rc/comment/dmyt4eo/
    youtube.com##ytd-browse[page-subtype="home"]
    ! ----------------------------------------------------------------------------------
    ! Title: Hide YouTube Shorts
    ! Last modified: 2024-02-17 11:55
    ! Homepage: https://github.com/gijsdev/ublock-hide-yt-shorts

    ! Remove empty spaces in grid
    www.youtube.com##ytd-rich-grid-row,#contents.ytd-rich-grid-row:style(display: contents !important)

    ! Hide all videos containing the phrase "#shorts"
    www.youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(/(^| )#Shorts?( |$)/i))
    www.youtube.com##ytd-rich-item-renderer:has(#video-title:has-text(/(^| )#Shorts?( |$)/i))

    ! Hide all videos with the shorts indicator on the thumbnail
    www.youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"])
    www.youtube.com##ytd-rich-item-renderer:has([overlay-style="SHORTS"])
    www.youtube.com##ytd-video-renderer:has([overlay-style="SHORTS"])
    www.youtube.com##ytd-item-section-renderer.ytd-section-list-renderer[page-subtype="subscriptions"]:has(ytd-video-renderer:has([overlay-style="SHORTS"]))

    ! Hide shorts button in sidebar
    www.youtube.com##ytd-guide-entry-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))
    ! Tablet resolution
    www.youtube.com##ytd-mini-guide-entry-renderer:has(.title:has-text(/^Shorts$/i))

    ! Hide shorts section on homepage
    www.youtube.com##ytd-rich-section-renderer:has(#title:has-text(/(^| )Shorts( |$)/i))
    www.youtube.com##ytd-reel-shelf-renderer:has(.ytd-reel-shelf-renderer:has-text(/(^| )Shorts( |$)/i))

    ! Hide shorts tab on channel pages`
    ! Old style
    www.youtube.com##tp-yt-paper-tab:has(.tp-yt-paper-tab:has-text(Shorts))
    ! New style (2023-10)
    www.youtube.com##yt-tab-shape:has-text(/^Shorts$/)

    ! Hide short remixes in video descriptions
    www.youtube.com##ytd-reel-shelf-renderer.ytd-structured-description-content-renderer:has-text(/^Shorts remixing this video$/i)

    ! Hide shorts category on homepage and search pages
    www.youtube.com##yt-chip-cloud-chip-renderer:has(yt-formatted-string:has-text(/^Shorts$/i))

    !!! MOBILE !!!

    ! Hide all videos in home feed containing the phrase "#shorts"
    www.youtube.com##ytm-rich-item-renderer:has(#video-title:has-text(/(^| )#Shorts?( |$)/i))

    ! Hide all videos in subscription feed containing the phrase "#shorts"
    m.youtube.com##ytm-item-section-renderer:has(#video-title:has-text(/(^| )#Shorts?( |$)/i))

    ! Hide shorts button in the bottom navigation bar
    m.youtube.com##ytm-pivot-bar-item-renderer:has(.pivot-shorts)

    ! Hide all videos with the shorts indicator on the thumbnail
    m.youtube.com##ytm-video-with-context-renderer:has([data-style="SHORTS"])

    ! Hide shorts sections
    m.youtube.com##ytm-rich-section-renderer:has(.reel-shelf-title-wrapper .yt-core-attributed-string:has-text(/(^| )Shorts( |$)/i))
    m.youtube.com##ytm-reel-shelf-renderer.item:has(.reel-shelf-title-wrapper .yt-core-attributed-string:has-text(/(^| )Shorts( |$)/i))

    ! Hide shorts tab on channel pages
    ! Old style
    m.youtube.com##.single-column-browse-results-tabs>a:has-text(Shorts)
    ! New style (2023-10)
    m.youtube.com##yt-tab-shape:has-text(/^Shorts$/)

    ! Hide short remixes in video descriptions
    m.youtube.com##ytm-reel-shelf-renderer:has(.reel-shelf-title-wrapper .yt-core-attributed-string:has-text(/^Shorts remixing this video$/i))

    ! Hide shorts category on homepage
    m.youtube.com##ytm-chip-cloud-chip-renderer:has(.yt-core-attributed-string:has-text(/^Shorts$/i))
    ! ----------------------------------------------------------------------------------