Skip to content

Instantly share code, notes, and snippets.

@erbanku
Created September 25, 2021 04:15
Show Gist options
  • Save erbanku/f342fc83f679063262653e10c3a54000 to your computer and use it in GitHub Desktop.
Save erbanku/f342fc83f679063262653e10c3a54000 to your computer and use it in GitHub Desktop.
/* Thanks to: https://gist.github.com/ericwbailey/7a184e44351829e316fa493adb185a2e */
/* Remove Logo */
[aria-label="Twitter"] {
display: none;
}
/*
* LEFT COLUMN
*/
/* Remove nav I don't use */
/* [aria-label="Search and explore"],
[aria-label="Bookmarks"],
[aria-label="Lists"]
{
display: none;
} */
[aria-label="Lists"],
[aria-label="Search and explore"]
/*[aria-label="Notifications"]*/
{display: none;}
/* Less visual weight for nav options */
[aria-label="Primary"] [dir="auto"] {
font-size: 1rem;
font-weight: 400;
}
/* Tigher grouping */
[aria-label="Primary"] a {
padding: 0;
}
/* Hide distracting profile toggle */
[data-testid="SideNav_AccountSwitcher_Button"] {
display: none;
}
/*
* TWEET BUTTON
*/
/* Make button flatter, less loud */
[aria-label="Tweet"] {
border: none;
box-shadow: none;
background-color: #00a1f9;
}
/* Style to look like other UI */
[aria-label="Tweet"] div {
color: #f4f8fa;
}
[aria-label="Tweet"]:hover {
filter: none;
}
[aria-label="Tweet"]:hover {
background-color: #f4f8fa;
}
[aria-label="Tweet"]:hover div {
color: #00a1f9;
}
/*
* RIGHT COLUMN
*/
/* See ya later, racism aggregator */
[aria-label="Timeline: Trending now"] {
display: none;
}
/* Less visual weight for who to follow */
[aria-label="Who to follow"] [aria-level="2"][role="heading"] .r-1qd0xha {
font-size: 1rem;
}
/* Tone down unfollow */
[data-testid="16515870-unfollow"] {
filter: grayscale(1);
opacity: 0.5;
}
/* Remove the background color from Who to Follow */
[data-testid="sidebarColumn"] .r-1u4rsef {
background-color: transparent !important;
}
/*
* DM DRAWER
*/
[data-testid="DMDrawer"] {
display: none;
}
nav.css-1dbjc4n.r-18u37iz.r-1w6e6rj.r-ymttw5 {
display: none;
}
/* Hide browser scrollbar */
::-webkit-scrollbar {
display:none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment