Guest User

Untitled

a guest
Oct 20th, 2025
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1. /* ==UserStyle==
  2. @name YOUTUBE 2025 - FIX NEW UI
  3. @version 20251020
  4. @namespace ?
  5. @description Makes new UI look like an old one
  6. @license No License
  7. ==/UserStyle== */
  8.  
  9. @-moz-document domain("youtube.com") {
  10. :root{
  11. --toolbar-height: 46px;
  12. --element-margin: 0px;
  13. --element-height: calc(var(--toolbar-height) - var(--element-margin));
  14.  
  15. --bg-color: #0000;
  16. }
  17.  
  18. /* 強制移除所有放大效果的樣式*/
  19. .ytp-big-mode {
  20. all: unset !important;
  21. }
  22.  
  23. /* 懸浮提示位置下移,用於劇院模式*/
  24. #player-full-bleed-container:has(#player-container) .ytp-delhi-modern .ytp-tooltip:not(.ytp-preview){
  25. margin-top: calc(96px - var(--toolbar-height)) !important;
  26. }
  27.  
  28. /* 預覽畫面位置下移,用於劇院模式*/
  29. #player-full-bleed-container:has(#player-container) .ytp-delhi-modern .ytp-tooltip:is(.ytp-preview){
  30. margin-top: calc((96px - var(--toolbar-height)) * 1.8) !important;
  31. }
  32.  
  33. /* 控制面板陰影 */
  34. .ytp-delhi-modern .ytp-chrome-bottom::before {
  35. content: "";
  36. position: absolute;
  37. left: -40px;
  38. right: -40px; /* 左右各超出 20px */
  39. top: calc(var(--toolbar-height) * -1);
  40. bottom: 0;
  41. background: linear-gradient(to top,rgba(0, 0, 0, 0.4) 0%,rgba(0, 0, 0, 0) 50%) !important;
  42. }
  43.  
  44. /* 隱藏正中央下方的expand按鈕 */
  45. .ytp-fullscreen-grid-expand-button {
  46. display: none;
  47. }
  48.  
  49. .ytp-delhi-modern .ytp-chrome-bottom, .ytp-delhi-modern .ytp-chrome-controls, .ytp-delhi-modern.ytp-big-mode:not(.ytp-xsmall-width-mode) .ytp-chrome-bottomt{
  50. height: var(--toolbar-height) !important;
  51. line-height: var(--toolbar-height) !important;
  52. }
  53.  
  54. .ytp-right-controls{
  55. height: 100% !important;
  56. }
  57.  
  58. .ytp-delhi-modern.ytp-big-mode:not(.ytp-xsmall-width-mode) .ytp-progress-bar-container, .ytp-delhi-modern:not(.ytp-player-minimized) .ytp-progress-bar-container{
  59. bottom: var(--toolbar-height) !important;
  60. }
  61.  
  62. /* Overlays container */
  63. .ytp-delhi-modern.ytp-big-mode.ytp-fullscreen-grid-peeking .ytp-overlays-container, .ytp-delhi-modern.ytp-fullscreen-grid-peeking .ytp-overlays-container{
  64. bottom: calc( var(--toolbar-height) + 20px) !important;
  65. }
  66.  
  67. .ytp-delhi-modern .ytp-chrome-controls .ytp-right-controls,.ytp-delhi-modern .ytp-prev-button:not(.ytp-miniplayer-button-container>*), .ytp-delhi-modern .ytp-chrome-controls .ytp-next-button:not(.ytp-miniplayer-button-container>*).ytp-playlist-ui{
  68.  
  69. padding: 0 !important;
  70. margin-top: calc( var(--element-margin) -2px) !important;
  71. }
  72.  
  73. .ytp-delhi-modern .ytp-chrome-controls .ytp-play-button{
  74. margin: var(--element-margin) 0 !important;
  75. }
  76.  
  77. /* 音量位置 */
  78. .ytp-delhi-modern.ytp-delhi-horizontal-volume-controls .ytp-volume-area{
  79. height: 100%;
  80. margin: var(--element-margin) 0 !important;
  81. }
  82.  
  83.  
  84. /* 影片時間位置 */
  85. .ytp-delhi-modern .ytp-time-display:not(.ytp-miniplayer-ui *){
  86. padding: var(--element-margin) 0 !important;
  87. }
  88.  
  89. .ytp-time-display {
  90. margin-top: -1px !important;
  91. display: flex !important;
  92. justify-content: center !important;
  93. align-items: center !important;
  94. }
  95.  
  96. /* 影片字型權重 */
  97. .ytp-time-current{
  98. font-weight: 400;
  99. }
  100.  
  101. /* 章節位置 */
  102. .ytp-delhi-modern .ytp-chapter-container{
  103. padding: var(--element-margin) 0 !important;
  104. }
  105.  
  106. /* 播放按鈕位置和大小 */
  107. .ytp-delhi-modern .ytp-chrome-controls .ytp-play-button{
  108. --size: var(--element-height);
  109. height: var(--size) !important;
  110. width: var(--size) !important;
  111. }
  112.  
  113. /* 播放按鈕位置和大小 */
  114. .ytp-delhi-modern-icons .ytp-chrome-controls .ytp-play-button svg {
  115. padding: 9px !important;
  116. --size: 28px;
  117. height: var(--size) !important;
  118. width: var(--size) !important;
  119. }
  120.  
  121. /* 全螢幕修正 */
  122. .ytp-delhi-modern.ytp-delhi-horizontal-volume-controls.ytp-big-mode:not(.ytp-xsmall-width-mode) .ytp-volume-area, .ytp-big-mode .ytp-volume-slider, .ytp-delhi-modern .ytp-chrome-controls .ytp-mute-button, .ytp-delhi-modern.ytp-big-mode:not(.ytp-xsmall-width-mode) .ytp-time-display, .ytp-delhi-modern.ytp-big-mode:not(.ytp-xsmall-width-mode) .ytp-chrome-controls .ytp-next-button:not(.ytp-miniplayer-button-container>*), .ytp-big-mode.ytp-delhi-modern .ytp-chrome-controls .ytp-prev-button:not(ytp-miniplayer-button-container>*), .ytp-delhi-modern.ytp-big-mode:not(.ytp-xsmall-width-mode) .ytp-time-wrapper, .ytp-delhi-modern.ytp-big-mode:not(.ytp-xsmall-width-mode) .ytp-chapter-title.ytp-button{
  123. height: var(--element-height) !important;
  124. min-height: var(--element-height) !important;
  125. line-height: var(--element-height) !important;
  126. margin-top: 0px !important;
  127. margin-bottom: 0px !important;
  128. }
  129.  
  130. /*按鈕圖示位置修正*/
  131. #player-full-bleed-container:has(#player-container) .ytp-button:not([style*="display: none;"]):not(.ytp-expand-right-bottom-section-button):not(.ytp-fullscreen-grid-expand-button),
  132. #player:is(.style-scope) .ytp-button:not([style*="display: none;"]):not(.ytp-expand-right-bottom-section-button):not(.ytp-fullscreen-grid-expand-button) {
  133. display: flex !important;
  134. justify-content: center !important;
  135. align-items: center !important;
  136. }
  137.  
  138. #player-full-bleed-container:has(#player-container) .ytp-chapter-title, #player:is(.style-scope) .ytp-chapter-title {
  139. height: 100%;
  140. }
  141.  
  142. #player-full-bleed-container:has(#player-container) .ytp-subtitles-button-icon, #player:is(.style-scope) .ytp-subtitles-button-icon {
  143. height: 100%;
  144. display: flex !important;
  145. justify-content: center !important;
  146. align-items: center !important;
  147. }
  148.  
  149.  
  150. /*音量條修正,用於劇院模式*/
  151. #player-full-bleed-container:has(#player-container) .ytp-volume-slider-handle::before {
  152. left: -66px !important;
  153. width: 66px !important;
  154. }
  155.  
  156. #player-full-bleed-container:has(#player-container) .ytp-volume-slider-handle::after {
  157. width: 74px !important;
  158. }
  159.  
  160. #player-full-bleed-container:has(#player-container) .ytp-volume-slider-active .ytp-volume-panel {
  161. width:78px !important;
  162. }
  163.  
  164. /* 移除圖示和進度條的黑色背景 */
  165. .ytp-delhi-modern .ytp-time-wrapper:not(.ytp-miniplayer-ui *), .ytp-delhi-modern.ytp-delhi-horizontal-volume-controls .ytp-volume-area, .ytp-delhi-modern .ytp-chrome-controls .ytp-play-button, .ytp-delhi-modern .ytp-chrome-controls .ytp-right-controls, .ytp-delhi-modern .ytp-chrome-controls>*>*, .ytp-delhi-modern, .ytp-chapter-title {
  166. background: var(--bg-color) !important;
  167. }
  168.  
  169. .ytp-chapter-title.ytp-button, .ytp-delhi-modern .ytp-progress-list{
  170. background: rgba(255,255,255,.2);
  171. }
  172. }
Add Comment
Please, Sign In to add comment