2 ms·
One more thing regarding Stylus: you can conditionally apply custom styles by adding a parameter to the rule, so you can sanitize e.g. the Twitter thread UI whe
by _Microft 7y ago
One more thing regarding Stylus: you can conditionally apply custom styles by adding a parameter to the rule, so you can sanitize e.g. the Twitter thread UI when you want to screenshot them without sacrificing the UI for normal use. Here's an example that is triggered by appending ?simple to a direct link to a tweet.
@-moz-document regexp("https://twitter.com/.*\\?simple") {
.translate-button,
.tweet-stats-container,
.stream-item-footer,
.ProfileTweet-actionList,
.inline-reply-tweetbox-container,
.UserNameBreak,
.tweet-timestamp {
display: none;
}
.tweet .time::before {
content: "";
}
}