Skip to content

Instantly share code, notes, and snippets.

@passcod
Created December 23, 2022 04:32
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 passcod/75ad8ad23d68ab9c64c81be265f03ffd to your computer and use it in GitHub Desktop.
Save passcod/75ad8ad23d68ab9c64c81be265f03ffd to your computer and use it in GitHub Desktop.
/* ==UserStyle==
@name Twitter.com reorder stats
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Moves the new stats button after the regular stuff.
@author passcod
==/UserStyle== */
@-moz-document url-prefix("twitter.com/home") {
article [role="group"] > :nth-child(1) {
order: 1;
}
article [role="group"] > :nth-child(5) {
order: 2;
}
}
@-moz-document regexp("https://twitter.com/.+/status/[0-9]+") {
article [role="group"] > :nth-child(1) {
order: 1;
}
article [role="group"] > :nth-child(5) {
order: 2;
}
article[tabindex="-1"] [role="group"] > div {
gap: 20px;
}
article[tabindex="-1"] [role="group"] > div > div {
margin: 0;
}
article[tabindex="-1"] [role="group"] > div > :nth-child(1) {
order: 1;
}
article[tabindex="-1"] [role="group"] > div > :nth-child(5) {
order: 2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment