Skip to content

Instantly share code, notes, and snippets.

@adrienne
Last active March 10, 2022 07:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save adrienne/42fde0ab75f59cb14a6e838f76122eb6 to your computer and use it in GitHub Desktop.
Fix Stupid Shit on New Twitter
/* Install the STYLUS extension (not STYLISH, that one's got malware these days)
Stylus for Chrome: https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne
Stylus for FF: https://addons.mozilla.org/en-US/firefox/addon/styl-us/
Once it's installed, go to Twitter, click the button, and choose:
Create a new style -> for all URLs at twitter.com
Paste this code into the created style, then save!
*/
html body, [data-testid="primaryColumn"], .r-1h3ijdo {
background-color: #F9f8F7 !important;
}
[data-testid="primaryColumn"] {
max-width: 80% !important;
}
[data-testid="primaryColumn"] div:not(.r-1mdbhws) {
max-width: 100% !important;
}
[data-testid="sidebarColumn"] {
max-height: 70px !important;
position: absolute !important;
top: -10px !important;
right: 0 !important;
z-index: 2 !important;
}
[data-testid="sidebarColumn"] > .css-1dbjc4n.r-1pi2tsx,
[data-testid="sidebarColumn"] .css-1dbjc4n.r-1l5qxre.r-m611by {
height: 70px !important;
min-height: 70px !important;
}
[data-testid="AppTabBar_Explore_Link"] {
display: none !important;
}
[data-testid="sidebarColumn"] > div > div > div > div > div > div:not(.r-aqfbo4) {
display: none !important;
}
header[role="banner"] > div > div > div {
position: fixed !important;
}
[data-testid$='-follow'] {
background-color: #aaaaaa !important;
}
[data-testid$='-follow']:hover {
background-color: rgb(29, 161, 242) !important;
}
[aria-label^='Following'] {
background-color: rgb(29, 161, 242);
}
[aria-label^='Following']:hover {
background-color: #ff0000;
}
/* changes some link colors that got messed up back to the base color */
article .css-1dbjc4n .css-1dbjc4n .css-1dbjc4n .css-901oao.css-16my406.r-poiln3.r-bcqeeo {
color: #0f1419 !important;
}
/* tries to remove goddamn Chirp from everywhere it matters */
.css-1dbjc4n .css-1dbjc4n .css-1dbjc4n span, div div .r-37j5jr,
div div .css-901oao, div div .css-16my406, div div .r-poiln3, div div .r-bcqeeo, div div .r-qvutc0
{
font-family: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment