Last active
September 17, 2025 10:31
-
-
Save EshuMarneedi/16ef223c71d78fe28548c582ba6cbe70 to your computer and use it in GitHub Desktop.
Removes a bunch of Twitter website nonsense.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} | |
#react-root > div > div > div.css-175oi2r.r-1f2l425.r-13qz1uu.r-417010.r-18u37iz > main > div > div > div > div.css-175oi2r.r-aqfbo4.r-10f7w94.r-1hycxz > div > div.css-175oi2r.r-1hycxz.r-gtdqiz > div > div > div > div:nth-child(4) > section > div > div > div:nth-child(1) > div > div { | |
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