Skip to content

Instantly share code, notes, and snippets.

@insin
Last active July 4, 2023 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save insin/ff6a392feccead6272f7d2a659a9227d to your computer and use it in GitHub Desktop.
Save insin/ff6a392feccead6272f7d2a659a9227d to your computer and use it in GitHub Desktop.
Userstyle for New TweetDeck - use with the Stylus extension: https://github.com/openstyles/stylus#stylus
/* Hide... */
/* Views on list tweets */
[data-testid="tweet"][tabindex="0"] div[id^=id__][role=group] > div:nth-child(4):nth-last-child(2),
/* Views on focused tweet */
[data-testid="tweet"][tabindex="-1"] div[dir] + div[aria-hidden="true"]:nth-child(2):nth-last-child(2),
[data-testid="tweet"][tabindex="-1"] div[dir] + div[aria-hidden="true"]:nth-child(2):nth-last-child(2) + div[dir]:last-child,
/* Bookmark button on focused tweet */
[data-testid="tweet"][tabindex="-1"] div[id^=id__][role=group] > div:nth-child(4):nth-last-child(2),
/* Share button on all tweets */
div[id^=id__][role=group] > div:nth-child(5):last-child,
/* Bookmark count on focused tweet */
[data-testid="tweet"][tabindex="-1"] [role="group"]:not([id]) > div > div,
/* Analytics link on your own focused tweet */
[data-testid="analyticsButton"],
/* Hide "Discover more" and subsequent tweets - doesn't work in Firefox (yet) */
[data-testid="cellInnerDiv"]:has(h2 + div[dir]) > div,
[data-testid="cellInnerDiv"]:has(h2 + div[dir]) ~ div > div {
display: none !important;
}
/* Un-bold menus */
[data-testid="Dropdown"] [role="menuitem"] [dir] {
font-weight: normal;
}
/* Don't use Chirp font in tweet text */
[data-testid="tweetText"] {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment