Skip to content

Instantly share code, notes, and snippets.

@sebm253
Last active March 17, 2025 22:04
Show Gist options
  • Select an option

  • Save sebm253/0531ff9ebabe59a81a0e3947e7016a01 to your computer and use it in GitHub Desktop.

Select an option

Save sebm253/0531ff9ebabe59a81a0e3947e7016a01 to your computer and use it in GitHub Desktop.
Twitter annoyances (uBlock Origin). Best used along with Minimal Twitter: https://github.com/sebm253/minimal-minimal-twitter
[uBlock Origin]
! Title: Twitter annoyances
! Homepage: https://gist.github.com/sebm253/0531ff9ebabe59a81a0e3947e7016a01
! Expires: 3 days
! twitter blue button
x.com##a[href^="/i/premium_sign_up"]
! grok
x.com##a[href="/i/grok"]
x.com##div:has(>button[aria-label="Grok actions"])
x.com##div:has(>button[data-testid="grokImgGen"])
! grok profile summary
x.com##button[aria-label="Profile Summary"]
x.com##div[data-testid="HoverCard"] > div > div > div:has(>button)
! grok tweet followups
x.com##article[data-testid="tweet"] div:has(>div[data-testid^="followups_"])
! grok drawer
x.com##div[data-testid="GrokDrawer"]
! subs
x.com##button[data-testid$="-subscribe"]:upward(1)
x.com##button[role="button"][style*="border-color: rgb(201, 54, 204);"]
x.com##div:has(>a[href$="/superfollows"])
x.com##button[aria-label="Send a tip"]
! unread tweets in communities label
x.com##a[href$="/communities"] div[aria-label]
! align sidebar to left (minimal twitter)
x.com##header[role="banner"] > div:style(margin-left: 0px !important;)
! recommendations sidebar
||x.com/i/api/1.1/users/recommendations.json
! PASTE THESE RULES TO "My filters":
!x.com##+js(trusted-replace-xhr-response, /{"entryId":"who-to-follow-.*"sourceData".*?}}}}}\,/, , )
!x.com##+js(trusted-replace-xhr-response, /{"entryId":"promoted-tweet-.*?}}}}}\,/, , )
!x.com##+js(trusted-replace-xhr-response, /{"entryId":"conversationthread-\d+-[a-z0-9]+".+?}}}}}\,/, , )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment