Skip to content

Instantly share code, notes, and snippets.

@squidfunk
Last active August 31, 2024 17:36
Show Gist options
  • Save squidfunk/ec27cf48906f188916e4970e7930c405 to your computer and use it in GitHub Desktop.
Save squidfunk/ec27cf48906f188916e4970e7930c405 to your computer and use it in GitHub Desktop.
Don't get sucked into Twitter (recommended extension: User CSS)
/* Hide menu items */
[aria-label^="Home"][role="link"],
[aria-label^="Search"],
[aria-label^="Bookmarks"],
[aria-label^="Grok"],
[aria-label^="Lists"],
[aria-label^="Communities"],
[aria-label^="Twitter Blue"],
[aria-label^="Premium"],
[aria-label^="Verified"],
[aria-label^="Timeline: Your Home"],
[data-testid^="AppTabBar_More_Menu"],[href="/i/premium_sign_up"] {
display: none;
}
/* Hide non-interactive user cells */
[data-testid="UserCell"]:not([role="button"]) {
visibility: hidden;
}
/* Hide right sidebar */
[data-testid="sidebarColumn"] {
visibility: hidden;
}
/* Hide message drawer */
[data-testid="DMDrawer"] {
visibility: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment