Twitter/Reddit embed fixes

Removes the trash from the Twitter & Reddit embeds

  1. /* ==UserStyle==
  2. @name Twitter/Reddit embed fixes
  3. @namespace zezombye.dev
  4. @version 1.0.0
  5. @description Removes the trash from the Twitter & Reddit embeds
  6. @author Zezombye
  7. @license MIT
  8. ==/UserStyle== */
  9.  
  10. @-moz-document domain("platform.twitter.com") {
  11. /* Embed fixes */
  12. div[data-testid="tweetText"] {
  13. font-size: 15px;
  14. line-height: 20px;
  15. }
  16. #app > div > div > div {
  17. border-width: 0px;
  18. }
  19. article {
  20. background-color: #2b2d31 !important;
  21. }
  22. div {
  23. border-color: rgb(76, 79, 87) !important;
  24. }
  25. #app > div > div > div > article > div:last-child {
  26. display: none;
  27. }
  28. article > div:has(> div div[data-testid^="UserAvatar-Container-"]) > div:nth-child(2) {
  29. padding-left: 6px;
  30. }
  31. article > div > div:has(> div > div[data-testid^="UserAvatar-Container-"]) > div:nth-child(2) {
  32. background-color: rgb(76, 79, 87);
  33. }
  34. div:has(> a[href^="https://twitter.com/intent/follow"]) {
  35. display: none;
  36. }
  37. a[aria-label="View on X"] {
  38. display: none;
  39. }
  40. div[aria-label="View on X"] {
  41. display: none;
  42. }
  43. a[aria-label="Watch on X"] {
  44. display: none;
  45. }
  46. a[aria-label="Continue watching on X"] {
  47. display: none;
  48. }
  49. a[aria-label="X Ads info and privacy"] {
  50. visibility: hidden;
  51. }
  52. div:has(> a[href^="https://twitter.com/intent/like"]) {
  53. display: none;
  54. }
  55. /* Fix verified color */
  56. svg[data-testid="icon-verified"] {
  57. color: rgb(29, 155, 240);
  58. }
  59. /* Dim the opacity of the play button so we can see the full video */
  60. div[aria-label^="Play Video"] {
  61. background-color: rgba(29, 155, 240, 0.5);
  62. border-color: white !important;
  63. }
  64. div[aria-label^="Play Video"]:hover {
  65. background-color: rgba(26, 140, 216, 0.5);
  66. }
  67. }
  68.  
  69. @-moz-document domain("embed.reddit.com") {
  70. #reddit-logo {
  71. display: none;
  72. }
  73. hr {
  74. display: none;
  75. }
  76. a.join-btn {
  77. display: none;
  78. }
  79. a.media-view-more-on-reddit-button {
  80. display: none;
  81. }
  82. a.embed-background-cta {
  83. display: none !important;
  84. }
  85. a[data-testid="comments"] {
  86. display: none;
  87. }
  88. faceplate-tracker {
  89. display: flex;
  90. }
  91. .h-\[80px\] {
  92. height: auto;
  93. }
  94. .h-\[60px\] {
  95. height: auto;
  96. }
  97. #embed-title {
  98. margin-top: 1rem;
  99. }
  100. .mt-xs {
  101. margin-top: 1rem;
  102. }
  103. #embed-container {
  104. background-color: #2b2d31 !important;
  105. }
  106. .text-neutral-content-weak, .text-secondary-weak, .text-global-brand-orangered {
  107. color: rgb(139, 152, 165);
  108. }
  109. div[id$="-embed-wrapper"] {
  110. border: none;
  111. }
  112. h1.font-bold {
  113. font-weight: normal;
  114. }
  115. img.h-full.w-full.object-contain.relative {
  116. max-height: 530px;
  117. }
  118. div.h-full.w-full.object-containborder-none {
  119. height: auto;
  120. }
  121. embed-img {
  122. display: none;
  123. }
  124. }

QingJ © 2025

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