Skip to content

Instantly share code, notes, and snippets.

@malcolmocean
Created May 5, 2021 23:02
Show Gist options
  • Save malcolmocean/2240f966e3e1dc46b504e648024dbcf8 to your computer and use it in GitHub Desktop.
Save malcolmocean/2240f966e3e1dc46b504e648024dbcf8 to your computer and use it in GitHub Desktop.
Twitter Userstyle - Post Only
/* install this userstyle using eg the Stylus extension, then
* go to https://twitter.com/post/status/only
* to be able to tweet without getting sucked into the rest of twitter
*/
@-moz-document url("https://twitter.com/compose/tweet"), regexp(".*twitter.com.*/status/.*") {
header[role="banner"] {display:none}
div[aria-label="Back"] {display: none;}
div[data-testid="DMDrawer"] {display: none;}
main {margin-left: 30px;}
}
@-moz-document url("https://twitter.com/post/status/only") {
.css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0,
a[href][role="link"] {
display: none;
}
body:before {
display: block;
position: absolute;
left: 0;
right: 0;
top: 30%;
content: 'press n to tweet';
text-align: center;
font-family: 'Ubuntu', 'Helvetica', 'sans-serif';
font-size: 7vw;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment