Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save belst-n/f9e3b3c4c579345a0778279715a6afc8 to your computer and use it in GitHub Desktop.

Select an option

Save belst-n/f9e3b3c4c579345a0778279715a6afc8 to your computer and use it in GitHub Desktop.
uBlock Origin/Adblock filter rules to minimize junk shown across StackOverflow.com, SuperUser.com, ServerFault.com, and other StackExchange sites. Intention is to hide everything besides questions, answers, links, comments, and useful metadata.
!!! 8/7/25
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.answer:has(+ :not(.answer)):style(border-bottom: 0 !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.aside-cta
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.bottom-notice
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.comment-text > .comment-body > .ai-center > .comment-user
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.comments-link
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-suggest-edit-post
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-pagination > .s-pagination--item
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-btn:has-text(Browse more Questions)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.fs-caption
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.jc-end
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.jc-space-around.fd-column.bs-lg.s-card.z-modal.ps-fixed
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-bottom-notice
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-chat-ad-rooms.s-sidebarwidget--content
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-comment-text-and-form .comment-link > .relativetime-clean
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-comment-text-and-form.comment-text > .js-comment-edit-hide.comment-body > .comment-date > .comment-link > .relativetime-clean
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-comment-text-and-form.comment-text > .js-comment-edit-hide.comment-body > .d-inline-flex > .comment-user
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-comment-text-and-form.comment-text:has-text(Your answer could be improved with additional)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-feed-link
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-footer.site-footer
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-footer.site-footer
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-pinned-left-sidebar.left-sidebar
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-post-menu > .s-anchors
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-post-summary-stats > .has-accepted-answer > .svg-icon
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-post-summary-stats > .has-answers-item__emphasized-item
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-products-menu
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-search-hints-text
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-sidebar-zone
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-voting-container
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.module.s-sidebarwidget
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.mt24 > .gsy.jc-end.d-flex
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.nav-links .nav-links
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.owner.post-signature .-flair
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.owner.post-signature .user-gravatar32
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.owner.post-signature > .user-info:style(background-color: none !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.owner.post-signature:style(background-color: #FFFFFF !important; width: auto !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-form.js-add-answer-component
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout > .answercell > .post-signature > .user-info > .user-details > .-flair
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout > .js-post-comments-component
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout > .post-layout--left.votecell
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout > .post-layout--right.answercell > .mt24 > .gsy.jc-end.d-flex > .flex--item > .js-post-menu
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout > .votecell
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-notice.s-notice
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-signature > .user-info > .user-details
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-signature > .user-info > .user-gravatar32
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.print.aside-cta > .s-btn.ws-nowrap
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-anchors.s-sidebarwidget
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-avatar
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.site-footer
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.site-footer--extra
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.sm\:ai-start.sm\:fd-column.gsx.d-flex
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.snippet-ctas
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-popover--arrow
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-topbar--content
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-user-card--awards
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-user-card--link
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-user-card--rep
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-gravatar32
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.vertical-align-content.ot-wo-title.ot-bottom-left.otFloatingRoundedCorner
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##[src^="https://accounts.google.com"]
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##[src^="https://devtools.azureedge.net"]
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##announcement-banner
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-signature.owner:style(background-color: none !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-signature:style(background-color: #FFFFFF !important; width: auto !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-details:style(margin-left: 0 !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-popover--content:style(width: 150px !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-hover.user-info > .user-details > .-flair:style(padding-left: 0 !important; margin-left: 0 !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-info .user-action-time:style(margin:0 !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-info .user-gravatar32~.user-details:style(padding-left: 0 !important; margin-left: 0 !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##answers > div:style(border-top: 3px solid black;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##body:style(margin-top: 0 !important; padding-top: 0 !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div.answer.js-answer:style(border-top: 4px solid #333eee !important; border-bottom: 0 !important; padding-top: 15px !important; margin-top: 15px !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div.flex--item > .s-btn__filled.s-btn
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div.ws-nowrap.flex--item:has-text(Viewed)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##h-linked
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##hot-network-questions
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##h-related
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##li > .s-navigation--item
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##mainbar > .d-flex
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##mainbar > .mb24
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##mainbar:not(:has(.question)):style(width: 100% !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##noscript-warning
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##question > .post-layout > .js-post-comments-component
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##question > .post-layout > .votecell
!!! ??
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###hot-network-questions
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###noscript-warning
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.jc-space-between
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-you-can-comment-banner-anon
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-topbar
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div[id^="follow-up"] > div > div.flex--item > div.flex--item.fd-column > div.d-flex
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div[id^="follow-up"] .jc-space-between
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div[id^="follow-up"] > div.fd-column > div.flex--item > div.flex--item:nth-of-type(1)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div[id^="follow-up"] > div.fd-column > div.flex--item > div.flex--item:nth-of-type(2):style(margin-left: 0px !important; padding: 3px 8px !important; border-left: 3px solid #C3AAAF !important; margin-bottom: 8px !important;)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div[id^="follow-ups-container"] > div > div:has(> h2)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/||*m/cdn-cgi/challenge-platform/h/g/scripts/jsd/
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.ps-relative.js-pinned-left-sidebar.left-sidebar
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.mb16.s-anchors__grayscale.s-anchors.s-sidebarwidget__yellow.s-sidebarwidget
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.print\:d-none.flex--item.aside-cta.ml12
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###question > .post-layout > .post-layout--left.votecell
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###answer-1720155 > .post-layout > .post-layout--left.votecell > .fc-black-300.gs4.ai-center.fd-column.jc-center.d-flex.js-voting-container
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###answer-1517400 > .post-layout > .post-layout--left.votecell > .fc-black-300.gs4.ai-center.fd-column.jc-center.d-flex.js-voting-container
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.ac-stretch.md\:fd-column.md\:mb12.w100.d-flex.js-bottom-notice
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.bottom-notice.js-bottom-notice
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-footer.site-footer
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout > .post-layout--right.answercell > .mt24 > .gsy.gs8.jc-end.ai-start.fw-wrap.d-flex > .mr16.flex--item > .pt2.js-post-menu > .fw-wrap.s-anchors__muted.s-anchors.gs8.d-flex
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout > .post-layout--right > div:has(a.comments-link)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###answers-header
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-gravatar32
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-info .user-gravatar32~.user-details:style(margin-left: 0 !important)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.-flair
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.user-details > a:style(font-size: var(--fs-caption) !important; margin: 0 !important)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###h-related
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###feed-link
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##div.postcell > div > div > div.flex--item > div[data-post-type-id="1"]:has(> div.s-anchors)
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.ps-relative.js-pinned-left-sidebar.left-sidebar
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.post-layout--left.votecell
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###sidebar > :not(:has(#h-related))
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###h-linked
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###hot-network-questions
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###hot-network-questions > h4
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/###noscript-warning
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-top-bar.l0.t0.ps-fixed.s-topbar
!!! 7/7/27
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.lh-xs.fc-black-400.fs-caption.mb24 > div
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.mb0.fs-headline1.fl1.flex--item
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.bc-black-200.baw2.ba.p12
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.js-post-summary-stats.s-post-summary--stats > .s-post-summary--stats-item:not(:has-text("/answer|votes/"))
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-avatar
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.iconQuestion
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-user-card--rep
/([a-z]+\.stackexchange|serverfault|superuser|askubuntu|stackoverflow).com$/##.s-user-card .s-user-card--info:style(gap: unset !important)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment