Created
December 23, 2022 04:32
-
-
Save passcod/75ad8ad23d68ab9c64c81be265f03ffd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==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