Skip to content

Instantly share code, notes, and snippets.

@bpmarkowitz
Last active April 6, 2023 17:41
Show Gist options
  • Save bpmarkowitz/32914a08ac2adb3a5f9c137972aff6b1 to your computer and use it in GitHub Desktop.
Save bpmarkowitz/32914a08ac2adb3a5f9c137972aff6b1 to your computer and use it in GitHub Desktop.
Custom Safari Stylesheet to hide the Twitter Trends + the DM Drawer
/* Twitter Custom CSS */
/* By Ben Markowitz */
/* bpmarkowitz.com */
/* hide trending topics */
[aria-label="Trending"] > div > div{
display: none !important;
}
/* show the search box & add some padding */
[aria-label="Trending"] > div > div:first-child{
margin-top: 18px !important;
display: block !important;
}
/* hide the DMs drawer */
[data-testid="DMDrawer"] {
display: none !important;
}
/* Hide dumb doge icon */
[aria-label="Twitter"] > div > svg {
display: none !important;
}
/* Show Twitter Logo */
[aria-label="Twitter"] > div {
background:url(https://abs.twimg.com/errors/logo46x38@2x.png);
background-size: 30px;
background-position: center;
background-repeat: no-repeat;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment