Skip to content

Instantly share code, notes, and snippets.

@EshuMarneedi
Last active July 9, 2026 00:00
Show Gist options
  • Select an option

  • Save EshuMarneedi/16ef223c71d78fe28548c582ba6cbe70 to your computer and use it in GitHub Desktop.

Select an option

Save EshuMarneedi/16ef223c71d78fe28548c582ba6cbe70 to your computer and use it in GitHub Desktop.
Removes a bunch of Twitter website nonsense.
/* Remove all promoted tweets — no matter where they are. */
[data-testid="placementTracking"] article,
a[href*="quick_promote_web"] {
display: none;
}
/* Remove the “Messages” drawer from the bottom left. */
[data-testid="DMDrawer"] {
visibility: hidden;
}
/* Remove the "Upgrade to Premium" upsell. */
[data-testid="sidebarColumn"] [aria-label="Upgrade\ to\ Premium\+"] {
display: none;
}
/* Remove its remnants. */
[aria-label="Trending"] :nth-child(3):has([aria-label="Upgrade\ to\ Premium\+"] [href="\/i\/premium_sign_up"]) {
display: none;
}
/* Remove "Verified Orgs" in the sidebar. */
[aria-label="Primary"] [aria-label="Verified\ Orgs"] > :first-child:has(svg) {
display: none;
}
/* Remove the "Business" tab in the sidebar. */
[aria-label="Primary"] [data-testid="vo-signup-tab"] {
display: none;
}
/* Remove "Grok" in the sidebar. */
[aria-label="Primary"] [aria-label="Grok"] {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment