Display whole images, display whole tweets, and various enhancements here and there
当前为
/* ==UserStyle==
@name Twitter fixes
@namespace zezombye.dev
@version 1.0.0
@description Display whole images, display whole tweets, and various enhancements here and there
@author Zezombye
@license MIT
==/UserStyle== */
@-moz-document domain("twitter.com") {
/*Display the whole images*/
.r-4gszlv {
background-size: contain;
}
/* Remove image border radius */
div.css-1dbjc4n.r-1kqtdi0.r-1867qdf.r-1phboty.r-rs99b7.r-1ny4l3l.r-1udh08x.r-o7ynqc.r-6416eg {
border-radius: 0;
}
/* Remove quote tweet border radius */
div.css-1dbjc4n.r-1kqtdi0.r-1867qdf.r-rs99b7.r-1loqt21.r-adacv.r-1ny4l3l.r-1udh08x.r-o7ynqc.r-6416eg {
border-radius: 0;
}
/* Sidebar. Hide the margin and border stuff on the parent div so we can put it back on the child divs and filter out the components properly.*/
div.css-1dbjc4n[aria-label="Trending"] > div.css-1dbjc4n.r-vacyoi.r-ttdzmv > div.css-1dbjc4n.r-g2wdr4.r-14wv3jr.r-1867qdf.r-1phboty.r-rs99b7.r-1ifxtd0.r-1udh08x {
border: none;
margin-bottom: 0px;
}
div.css-1dbjc4n[aria-label="Trending"] > div.css-1dbjc4n.r-vacyoi.r-ttdzmv > div.css-1dbjc4n.r-g2wdr4.r-14wv3jr.r-1867qdf.r-1phboty.r-rs99b7.r-1ifxtd0.r-1udh08x > * {
border: 1px solid rgb(22, 24, 28);
}
/* Hide "subscribe to premium"*/
aside[aria-label="Subscribe to Premium"] {
display: none;
}
/* Hide trending tab */
div.r-1udh08x.r-1ifxtd0.r-rs99b7.r-1phboty.r-1867qdf.r-14wv3jr.r-g2wdr4.css-1dbjc4n:nth-last-child(2) {
display: none;
}
/* Hide tos, privacy policy, etc */
nav.r-ymttw5.r-1w6e6rj.r-18u37iz.css-1dbjc4n {
display: none;
}
/* Fix double border between tweets caused by blocking ads */
div[data-testid="cellInnerDiv"] > div.css-1dbjc4n.r-1igl3o0.r-qklmqi.r-1adg3ll.r-1ny4l3l {
border: none;
}
div[data-testid="cellInnerDiv"] > div.css-1dbjc4n.r-1igl3o0.r-qklmqi.r-1adg3ll.r-1ny4l3l > div.css-1dbjc4n > :last-child {
border-bottom-width: 1px;
border-bottom-color: rgb(47, 51, 54);
}
/* Hide "new tweets" thing */
div.css-1dbjc4n.r-1r5su4o.r-6dt33c.r-1kw4oii.r-d3hbe1.r-eafdt9.r-1b8bd59.r-6czh2s[role="status"] {
display: none;
}
/* Dim the opacity of the play button so we can see the full video */
div.css-18t94o4.css-1dbjc4n.r-l5o3uw.r-11mg6pl.r-sdzlij.r-1phboty.r-14f9gny.r-e6wyp1.r-1ny4l3l.r-o7ynqc.r-6416eg.r-1p15a4t[data-testid="playButton"] {
background-color: rgba(29, 155, 240, 0.5);
}
div.css-18t94o4.css-1dbjc4n.r-1vtznih.r-11mg6pl.r-sdzlij.r-1phboty.r-14f9gny.r-e6wyp1.r-1ny4l3l.r-o7ynqc.r-6416eg.r-1p15a4t[data-testid="playButton"] {
background-color: rgba(26, 140, 216, 0.5);
}
/* Remove line clamp on long tweets */
div.css-901oao.css-cens5h.r-1nao33i.r-37j5jr.r-a023e6.r-16dba41.r-rjixqe.r-bcqeeo.r-bnwqim.r-qvutc0[data-testid="tweetText"] {
-webkit-line-clamp: unset !important;
}
/* Remove "show more" link */
.css-901oao.r-1cvl2hr.r-1loqt21.r-37j5jr.r-a023e6.r-16dba41.r-rjixqe.r-bcqeeo.r-qvutc0[data-testid="tweet-text-show-more-link"] {
display: none;
}
}