Skip to content

Instantly share code, notes, and snippets.

@krc
Created June 13, 2026 06:02
Show Gist options
  • Select an option

  • Save krc/976bb616f50e03efe5456c8c78673f31 to your computer and use it in GitHub Desktop.

Select an option

Save krc/976bb616f50e03efe5456c8c78673f31 to your computer and use it in GitHub Desktop.
Custom static rules for uBlock Origin for blocking some "AI" and other annoying screen elements
! 2025 https://store.steampowered.com
! Remove "open in steam" banner
store.steampowered.com##.banner_open_in_steam
! Nov 3, 2025 https://www.youtube.com
www.youtube.com###statement-banner-content
! Jan 24, 2026 https://www.youtube.com
www.youtube.com##.ytVideoDescriptionYouchatSectionViewModelPrimaryButton > .ytSpecButtonViewModelHost
! 2026-02-23 https://www.youtube.com - changes regularly
! Remove "Ask" AI button on video page
www.youtube.com##yt-button-view-model:has-text(Ask)
www.youtube.com##ytd-menu-service-item-renderer:has-text(Ask)
! Remove video page "AI" summary
www.youtube.com###expandable-metadata > .ytd-watch-flexy.style-scope
! Remove search page "AI" summary
www.youtube.com##ytd-expandable-metadata-renderer > .ytd-expandable-metadata-renderer.style-scope
! Remove "Ask for videos any way you like" AI block
www.youtube.com##ytd-talk-to-recs-flow-renderer
! For "Youtube Playables" but probably any "dismissible" e.g. "Things outside what you usually watch" etc.
www.youtube.com###dismissible.ytd-brand-video-shelf-renderer
www.youtube.com###dismissible.ytd-rich-shelf-renderer
! 2025 https://www.twitch.tv - Remove top carousel on front page
www.twitch.tv##.front-page-carousel.hpFekz.Layout-sc-1xcs6mc-0
! 2025 https://www.amazon.com - Disable "Rufus" AI bot
! Rufus button on top nav bar
www.amazon.com##.nav-rufus-disco
! the flyout panel when you click that button
www.amazon.com##.rufus-panel-container
! "Ask Rufus" section under the product images - hopefully not too broad
www.amazon.com###nile-inline_feature_div
! "Looking for specific info" section
www.amazon.com##div.celwidget:has-text("Looking for specific info")
! the "Customers Say" section above the reviews
www.amazon.com###cr-product-insights-cards
! 2024 https://www.reddit.com - Block popup snippet share buttong
www.reddit.com##embed-snippet-share-button
! Jan 25, 2026 https://bsky.app
||live-events.workers.bsky.app/images/image-da76409d840f2e50564686b46e5490944ebb4b32-1773x707-png/compact$image
! Feb 10, 2026 https://x.com
x.com##.r-12jitg0.r-rs99b7.r-j7xza8.r-5zmot.r-1e5uvyk.r-173mn98.r-13qz1uu.r-u8s1d.r-1udh08x.r-1ce3o0f.r-13awgt0.r-qo02w8.r-1867qdf.r-105ug2t.css-175oi2r
x.com##a.r-1loqt21.r-1ny4l3l.r-13qz1uu.r-cnw61z.r-1habvwh.r-16y2uox.r-eqz5dr.r-6koalj.css-175oi2r:nth-of-type(6)
! 2025 Generalized discourse "share quote" blocker...too broad?
##.quote-share-label.btn-flat.btn-icon-text.btn
! Google https://accounts.google.com
! 2024-02-16 Block all "log in with google" popover iframes
||accounts.google.com/gsi/iframe/select$subdocument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment