Skip to content

Instantly share code, notes, and snippets.

@char
Last active April 8, 2025 07:31
Show Gist options
  • Save char/2b992f69eadafa94c78af30bf2cfda9e to your computer and use it in GitHub Desktop.
Save char/2b992f69eadafa94c78af30bf2cfda9e to your computer and use it in GitHub Desktop.
twitter ublock rules
! upsells
x.com##[data-testid="sidebarColumn"] div:has(> [aria-label*="Subscribe to Premium"])
x.com##nav a[href="/i/verified-choose"]
x.com##nav a[href="/i/premium_sign_up"]
x.com##nav a[href="/i/monetization"]
x.com##nav a[href="/i/verified-orgs-signup"]
x.com##nav a[href="/i/account_analytics"]
x.com##[data-testid=sidebarColumn] aside:has(a[href="/i/premium_sign_up"])
x.com##[data-testid=UserName] > div:has(a[href="/i/premium_sign_up"])
x.com##[data-testid=primaryColumn] a[href="/i/premium_sign_up"]:upward(3):has-text("You aren’t verified yet")
x.com##article a[href="/i/account_analytics"]:upward(3):has-text("Access your post analytics")
! grok
x.com##nav a[href="/i/grok"]
x.com##button[aria-label="Grok actions"]
x.com##[data-testid=GrokDrawerHeader]
x.com##button[aria-label="Profile Summary"]
! ads:
x.com##[data-testid="placementTracking"]:has(article)
! shit that i just find annoying
x.com##section[role="region"]:has(h1:has-text("Trending now"))
x.com##[data-testid="cellInnerDiv"]:has(h2:has-text("Pinned by people you follow"))
x.com##[data-testid="cellInnerDiv"]:has(h2:has-text("Pinned by people you follow")) + [data-testid="cellInnerDiv"]
x.com##nav a[href="/jobs"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment