Created
December 9, 2023 09:32
-
-
Save EshuMarneedi/16ef223c71d78fe28548c582ba6cbe70 to your computer and use it in GitHub Desktop.
Removes a bunch of Twitter website nonsense.
This file contains 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
/* Use the default San Francisco font on macOS. */ | |
* { | |
font-family: system-ui !important; | |
} | |
/* 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 Grok from the sidebar. */ | |
[role="navigation"] > :nth-child(5) { | |
display: none; | |
} | |
/* Remove Communities from the sidebar. */ | |
[aria-label="Primary"] [aria-label="Communities"] { | |
display: none; | |
} | |
/* For non-Premium users: Remove the “Subscribe to Premium” banner at the top of the “What’s happening” area. */ | |
[aria-label="Subscribe to Premium"][role="complementary"] { | |
display: none; | |
} | |
/* For non-Premium users: Remove the remnants of the “Subscribe to Premium” banner at the top of the “What’s happening” area. */ | |
[aria-label="Trending"] :nth-child(3):has([href="\/i\/verified-choose"]) { | |
display: none; | |
} | |
/* For Premium subscribers: Remove the remnants of the “Subscribe to Premium+” banner at the top of the “What’s happening” area. */ | |
[aria-label="Trending"] :nth-child(3):has([href="\/i\/premium_tier_switch"]) { | |
display: none; | |
} | |
/* For non-Premium users: Remove the “Premium” tab in the sidebar. */ | |
[aria-label="Primary"] [aria-label="Premium"] { | |
display: none; | |
} | |
/* For Premium subscribers: Remove the “Premium+” tab in the sidebar. */ | |
[aria-label="Primary"] [aria-label="Premium\+"] { | |
display: none; | |
} | |
/* For Premium subscribers: Remove the “Verified Orgs” tab in the sidebar. */ | |
[aria-label="Primary"] [aria-label="Verified \Orgs"] { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment