twitter.com - 03/12/2022 15:16:07

Display whole images, display whole tweets, and various enhancements here and there

目前为 2023-11-13 提交的版本。查看 最新版本

  1. /* ==UserStyle==
  2. @name twitter.com - 03/12/2022 15:16:07
  3. @namespace zezombye.dev
  4. @version 1.0.0
  5. @description Display whole images, display whole tweets, and various enhancements here and there
  6. @author Zezombye
  7. @license MIT
  8. ==/UserStyle== */
  9.  
  10. @-moz-document domain("twitter.com") {
  11. /*Display the whole images*/
  12. .r-4gszlv {
  13. background-size: contain;
  14. }
  15. /* Remove image border radius */
  16. div.css-1dbjc4n.r-1kqtdi0.r-1867qdf.r-1phboty.r-rs99b7.r-1ny4l3l.r-1udh08x.r-o7ynqc.r-6416eg {
  17. border-radius: 0;
  18. }
  19. /* Remove quote tweet border radius */
  20. div.css-1dbjc4n.r-1kqtdi0.r-1867qdf.r-rs99b7.r-1loqt21.r-adacv.r-1ny4l3l.r-1udh08x.r-o7ynqc.r-6416eg {
  21. border-radius: 0;
  22. }
  23. /* 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.*/
  24. 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 {
  25. border: none;
  26. margin-bottom: 0px;
  27. }
  28. 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 > * {
  29. border: 1px solid rgb(22, 24, 28);
  30. }
  31. /* Hide "subscribe to premium"*/
  32. aside[aria-label="Subscribe to Premium"] {
  33. display: none;
  34. }
  35. /* Hide trending tab */
  36. div.r-1udh08x.r-1ifxtd0.r-rs99b7.r-1phboty.r-1867qdf.r-14wv3jr.r-g2wdr4.css-1dbjc4n:nth-last-child(2) {
  37. display: none;
  38. }
  39. /* Hide tos, privacy policy, etc */
  40. nav.r-ymttw5.r-1w6e6rj.r-18u37iz.css-1dbjc4n {
  41. display: none;
  42. }
  43. /* Fix double border between tweets caused by blocking ads */
  44. div[data-testid="cellInnerDiv"] > div.css-1dbjc4n.r-1igl3o0.r-qklmqi.r-1adg3ll.r-1ny4l3l {
  45. border: none;
  46. }
  47. div[data-testid="cellInnerDiv"] > div.css-1dbjc4n.r-1igl3o0.r-qklmqi.r-1adg3ll.r-1ny4l3l > div.css-1dbjc4n > :last-child {
  48. border-bottom-width: 1px;
  49. border-bottom-color: rgb(47, 51, 54);
  50. }
  51. /* Hide "new tweets" thing */
  52. div.css-1dbjc4n.r-1r5su4o.r-6dt33c.r-1kw4oii.r-d3hbe1.r-eafdt9.r-1b8bd59.r-6czh2s[role="status"] {
  53. display: none;
  54. }
  55. /* Dim the opacity of the play button so we can see the full video */
  56. 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"] {
  57. background-color: rgba(29, 155, 240, 0.5);
  58. }
  59. 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"] {
  60. background-color: rgba(26, 140, 216, 0.5);
  61. }
  62. /* Remove line clamp on long tweets */
  63. div.css-901oao.css-cens5h.r-1nao33i.r-37j5jr.r-a023e6.r-16dba41.r-rjixqe.r-bcqeeo.r-bnwqim.r-qvutc0[data-testid="tweetText"] {
  64. -webkit-line-clamp: unset !important;
  65. }
  66. /* Remove "show more" link */
  67. .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"] {
  68. display: none;
  69. }
  70. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址