Skip to content

Instantly share code, notes, and snippets.

@cyyynthia
Last active April 16, 2025 18:26
Show Gist options
  • Select an option

  • Save cyyynthia/d9ca3e2ea26dd6cf50ea46178abb5ec9 to your computer and use it in GitHub Desktop.

Select an option

Save cyyynthia/d9ca3e2ea26dd6cf50ea46178abb5ec9 to your computer and use it in GitHub Desktop.
uBO custom rules I use to make my browsing experience more bearable on websites I commonly use.
[uBlock Origin]
! Written by Cynthia :: https://cynthia.dev
! SPDX-License-Identifier: 0BSD
! I'm trying to keep the list not too opinionated such that it is viable to subscribe to the gist...
! Some *very* opinionated rules I personally use are included, but commented out.
! Copy the rules in your own custom filters if you want to use them.
! To find those rules, search for "[Opinionated]" in the file.
! >> I post about updates on Bluesky: @cynthia.dev
!! GitHub -------------
!! GitHub Copilot
github.com##li:has(> a[href="/github-copilot/signup"])
github.com##li:has(> a[href$="/copilot"])
github.com##.AppHeader-CopilotChat
github.com##.news div:has(> copilot-dashboard-entrypoint)
github.com###dashboard > h2
github.com##div[data-testid="issue-viewer-metadata-pane"] div[class*="CopilotWorkspaceButton"]
!! Neutralise Turbo on GitHub: disables "SPA-like" behavior making it faster (lol) and less fragile (also lol)
github.com##+js(set-attr, body, data-turbo, false)
!! Twitter -------------
!! Twitter Sidebar slop
! Removes:
! - Twitter Blue (Premium)
! - Twitter Piss (Verified Org)
! - Twitter Slop (Grok)
! - Birdwatch (Community Notes)
! - Knock-off LinkedIn
! - Twitter Ads
twitter.com,x.com##:is([data-testid="AppTabBar_Home_Link"] ~ a, div:has(> div > a[href="/settings"][data-testid="settings"]) a):is(a[href="/i/grok"], a[href="/i/premium_sign_up"], a[href="/i/verified-orgs-signup"], a[href="/i/communitynotes"], a[href="/jobs"], a[href^="https://ads.x.com"])
!! Twitter Blue CTA
twitter.com,x.com##div:has(> aside > a[href="/i/verified-choose"])
twitter.com,x.com##div[data-testid="sidebarColumn"] div:has(> div > aside[role="complementary"]:has(a[href="/i/premium_sign_up"]))
twitter.com,x.com##nav + div:has(div[aria-live="polite"] a[href="/i/premium_sign_up"])
!! Twitter "Promote" button on own tweets
twitter.com,x.com##article[data-testid="tweet"] a[href$="quick_promote_web/intro"]
!! Twitter Slop buttons
! Fake news enabler
twitter.com,x.com##[data-testid="ScrollSnap-List"] > div:has([data-testid="grokImgGen"])
! Explain tweet in skibidi toilet terms
twitter.com,x.com##[data-testid="tweet"] div:has(> button[aria-label*="Grok"])
! CTA just below tweet contents to ask Grok smth
twitter.com,x.com##[data-testid="tweet"] div:has(> div[data-testid^="followups_"])
! Profile summary part 2
twitter.com,x.com##[data-testid="HoverCard"] div:has(> button:has(svg):has(svg + span:has-text(Profile Summary)))
twitter.com,x.com##[data-testid^="UserAvatar-Container-"] + div button[aria-label="Profile Summary"]
! Yet some other Grok button
twitter.com,x.com###layers div[style]:has([data-testid="GrokDrawer"])
!! [Opinionated] Hide Twitter Blue mark, but keep Corporate and Government marks
! twitter.com,x.com##[data-testid="icon-verified"]:not(:has([fill]))
!! Twitter logo
twitter.com,x.com##:is(header h1, #placeholder) svg path:style(d: path("M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148 13.98 13.98 0 0 0 11.82 8.292a4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z") !important)
! Birdhouse
twitter.com,x.com##[data-testid="AppTabBar_Home_Link"] svg path:style(d: path("M12 9c-2.209 0-4 1.791-4 4s1.791 4 4 4 4-1.791 4-4-1.791-4-4-4zm0 6c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2zm0-13.304L.622 8.807l1.06 1.696L3 9.679V19.5C3 20.881 4.119 22 5.5 22h13c1.381 0 2.5-1.119 2.5-2.5V9.679l1.318.824 1.06-1.696L12 1.696zM19 19.5c0 .276-.224.5-.5.5h-13c-.276 0-.5-.224-.5-.5V8.429l7-4.375 7 4.375V19.5z") !important)
twitter.com,x.com##[data-testid="AppTabBar_Home_Link"]:has(span:matches-css(font-weight: 700)) svg path:style(d: path("M12 1.696L.622 8.807l1.06 1.696L3 9.679V19.5C3 20.881 4.119 22 5.5 22h13c1.381 0 2.5-1.119 2.5-2.5V9.679l1.318.824 1.06-1.696L12 1.696zM12 16.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5-1.567 3.5-3.5 3.5z") !important)
!! Google's Try Gemini
google.com##div:has(> span[data-is-tooltip-wrapper] button + div:has-text("Try Gemini"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment