YouTube FullScreen No Controls

Make YouTube FullScreen No Controls

当前为 2023-08-15 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name YouTube FullScreen No Controls
  3. @namespace github.com/openstyles/stylus
  4. @version 0.1.2
  5. @description Make YouTube FullScreen No Controls
  6. @author CY Fung
  7. @license MIT
  8. ==/UserStyle== */
  9.  
  10. @-moz-document url-prefix("https://www.youtube.com/watch?v=") {
  11. /* Insert code here... */
  12. /* ytp-autohide -> .ytp-fullscreen.html5-video-player */
  13.  
  14. /*
  15. .ytp-fullscreen.html5-video-player {
  16. cursor: none
  17. }*/
  18.  
  19.  
  20. .ytp-fullscreen.html5-video-player .ytp-player-content:not(.html5-endscreen),.ytp-fullscreen.html5-video-player .ytp-player-content:not(.ytp-upnext),.ytp-hide-info-bar .ytp-player-content {
  21. top: 0;
  22. -webkit-transition: bottom .1s cubic-bezier(.4,0,1,1),top .1s cubic-bezier(.4,0,1,1);
  23. -o-transition: bottom .1s cubic-bezier(.4,0,1,1),top .1s cubic-bezier(.4,0,1,1);
  24. transition: bottom .1s cubic-bezier(.4,0,1,1),top .1s cubic-bezier(.4,0,1,1)
  25. }
  26.  
  27. .ytp-fullscreen.html5-video-player .ytp-ypc-player-content,.ytp-hide-controls .ytp-player-content {
  28. bottom: 0
  29. }
  30.  
  31. .ytp-fullscreen.html5-video-player:not(.ytp-ad-overlay-open) .ytp-iv-player-content,.ytp-hide-controls .ytp-iv-player-content {
  32. bottom: 12px
  33. }
  34.  
  35.  
  36. .ytp-big-mode.ytp-fullscreen.html5-video-player:not(.ytp-ad-overlay-open) .ytp-iv-player-content,.ytp-big-mode.ytp-hide-controls .ytp-iv-player-content {
  37. bottom: 24px
  38. }
  39.  
  40.  
  41. .ytp-fullscreen.html5-video-player .ytp-playlist-menu-button,.ytp-fullscreen.html5-video-player .ytp-back-button,.ytp-fullscreen.html5-video-player .ytp-title-channel,.ytp-fullscreen.html5-video-player .ytp-title,.ytp-fullscreen.html5-video-player .ytp-chrome-top .ytp-watch-later-button,.ytp-fullscreen.html5-video-player .ytp-chrome-top .ytp-share-button,.ytp-fullscreen.html5-video-player .ytp-chrome-top .ytp-copylink-button,.ytp-fullscreen.html5-video-player:not(.ytp-cards-teaser-shown) .ytp-cards-button,.ytp-fullscreen.html5-video-player .ytp-overflow-button,.ytp-fullscreen.html5-video-player .ytp-chrome-bottom,.ytp-chrome-top[aria-hidden=true],.ytp-chrome-bottom[aria-hidden=true] {
  42. opacity: 0;
  43. -webkit-transition: opacity .1s cubic-bezier(.4,0,1,1);
  44. -o-transition: opacity .1s cubic-bezier(.4,0,1,1);
  45. transition: opacity .1s cubic-bezier(.4,0,1,1)
  46. }
  47.  
  48. .ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-playlist-menu-button,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-back-button,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-title-channel,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-title,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-chrome-top .ytp-watch-later-button,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-chrome-top .ytp-share-button,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active):not(.ytp-cards-teaser-shown) .ytp-cards-button,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-overflow-button {
  49. display: none
  50. }
  51.  
  52. .ytp-gradient-top[aria-hidden=true],.ytp-gradient-bottom[aria-hidden=true],.ytp-fullscreen.html5-video-player .ytp-gradient-top,.ytp-fullscreen.html5-video-player .ytp-gradient-bottom {
  53. opacity: 0;
  54. -webkit-transition: opacity .1s cubic-bezier(.4,0,1,1);
  55. -o-transition: opacity .1s cubic-bezier(.4,0,1,1);
  56. transition: opacity .1s cubic-bezier(.4,0,1,1)
  57. }
  58.  
  59. .ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-gradient-top,.ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-gradient-bottom {
  60. display: none
  61. }
  62.  
  63. .ad-showing.ytp-fullscreen.html5-video-player .video-ad-status-bar,.ad-showing.ytp-hide-controls .video-ad-status-bar {
  64. bottom: 0
  65. }
  66. .ytp-fullscreen.html5-video-player.ytp-ad-overlay-closed .ad-overlay {
  67. opacity: 0;
  68. -webkit-transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  69. -o-transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  70. transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1)
  71. }
  72. .ytp-hide-controls .ytp-ad-player-overlay-instream-info,.ytp-hide-controls .ytp-ad-survey-player-overlay-instream-info,.ytp-fullscreen.html5-video-player .ytp-ad-player-overlay-instream-info,.ytp-fullscreen.html5-video-player .ytp-ad-survey-player-overlay-instream-info,.ytp-iv-drawer-open .ytp-ad-player-overlay-instream-info,.ytp-iv-drawer-open .ytp-ad-survey-player-overlay-instream-info,.ytp-embed.ytp-hide-controls .ytp-ad-player-overlay-instream-info,.ytp-embed.ytp-hide-controls .ytp-ad-survey-player-overlay-instream-info,.ytp-embed.ytp-fullscreen.html5-video-player .ytp-ad-player-overlay-instream-info,.ytp-embed.ytp-fullscreen.html5-video-player .ytp-ad-survey-player-overlay-instream-info,.ytp-embed.ytp-iv-drawer-open .ytp-ad-player-overlay-instream-info,.ytp-embed.ytp-iv-drawer-open .ytp-ad-survey-player-overlay-instream-info {
  73. bottom: 6px;
  74. -webkit-transition: bottom .1s cubic-bezier(.4,0,1,1);
  75. -o-transition: bottom .1s cubic-bezier(.4,0,1,1);
  76. transition: bottom .1s cubic-bezier(.4,0,1,1)
  77. }
  78.  
  79. .ytp-fullscreen.html5-video-player.ytp-ad-overlay-closed .ytp-ad-overlay-slot {
  80. opacity: 0;
  81. -webkit-transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  82. -o-transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  83. transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1)
  84. }
  85.  
  86.  
  87. .ytp-fullscreen.html5-video-player .ytp-ad-persistent-progress-bar-container,.ytp-ad-player-overlay-progress-bar .ytp-ad-persistent-progress-bar-container {
  88. opacity: 1;
  89. bottom: 0;
  90. -webkit-transition: bottom .25s cubic-bezier(0,0,.2,1),opacity .25s cubic-bezier(0,0,.2,1);
  91. -o-transition: bottom .25s cubic-bezier(0,0,.2,1),opacity .25s cubic-bezier(0,0,.2,1);
  92. transition: bottom .25s cubic-bezier(0,0,.2,1),opacity .25s cubic-bezier(0,0,.2,1)
  93. }
  94.  
  95. .ytp-fullscreen.html5-video-player .iv-promo-website-card-cta-redesign.iv-promo-collapsed .iv-promo-img {
  96. opacity: .8;
  97. -webkit-transition: transform .2s cubic-bezier(0,0,.2,1),-webkit-transform .2s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(.4,0,1,1) .8s;
  98. transition: transform .2s cubic-bezier(0,0,.2,1),-webkit-transform .2s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(.4,0,1,1) .8s
  99. }
  100.  
  101. .ytp-fullscreen.html5-video-player.ytp-embed-overlays-autohide .iv-drawer {
  102. opacity: 0;
  103. -webkit-transition: opacity .1s cubic-bezier(.4,0,1,1);
  104. -o-transition: opacity .1s cubic-bezier(.4,0,1,1);
  105. transition: opacity .1s cubic-bezier(.4,0,1,1)
  106. }
  107.  
  108. .ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active).ytp-embed-overlays-autohide .iv-drawer {
  109. display: none
  110. }
  111.  
  112. .ytp-fullscreen.html5-video-player .iv-drawer-content::-webkit-scrollbar-thumb {
  113. background-color: transparent
  114. }
  115. .ytp-fullscreen.html5-video-player:not(.ytp-cards-teaser-shown) .ytp-cards-teaser,.ytp-iv-drawer-open .ytp-cards-teaser {
  116. opacity: 0;
  117. -webkit-transition: opacity .1s cubic-bezier(.4,0,1,1) .33s;
  118. -o-transition: opacity .1s cubic-bezier(.4,0,1,1) .33s;
  119. transition: opacity .1s cubic-bezier(.4,0,1,1) .33s
  120. }
  121. .ytp-fullscreen.html5-video-player.ytp-embed-overlays-autohide.ytp-contextmenu {
  122. opacity: 0;
  123. -webkit-transition: opacity .1s cubic-bezier(.4,0,1,1);
  124. -o-transition: opacity .1s cubic-bezier(.4,0,1,1);
  125. transition: opacity .1s cubic-bezier(.4,0,1,1)
  126. }
  127.  
  128. .ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active).ytp-embed-overlays-autohide.ytp-contextmenu {
  129. display: none
  130. }
  131. .ytp-fullscreen.html5-video-player:not(.ytp-mweb-player) .ytp-watermark:not(.ytp-muted-autoplay-watermark) {
  132. opacity: 0;
  133. -webkit-transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  134. -o-transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  135. transition: bottom .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1)
  136. }
  137.  
  138.  
  139. .ytp-big-mode.ytp-fullscreen.html5-video-player .ytp-info-panel-preview,.ytp-big-mode.ytp-hide-info-bar .ytp-info-panel-preview,.ytp-embed.ytp-fullscreen.html5-video-player .ytp-info-panel-preview,.ytp-embed.ytp-hide-info-bar .ytp-info-panel-preview {
  140. top: 12px
  141. }
  142.  
  143. .ytp-inline-preview-mode.ytp-fullscreen.html5-video-player .ytp-time-display {
  144. display: none
  145. }
  146. .ytp-inline-preview-mode.ytp-fullscreen.html5-video-player .ytp-inline-preview-scrim {
  147. opacity: 0
  148. }
  149. #inline-preview-player.ytp-fullscreen.html5-video-player .caption-window.ytp-caption-window-bottom {
  150. margin-bottom: 12px
  151. }
  152. .ytp-fullscreen.html5-video-player .ytp-offline-slate-bar,.ytp-hide-controls .ytp-offline-slate-bar {
  153. bottom: 12px;
  154. -webkit-transition: bottom .1s cubic-bezier(.4,0,1,1);
  155. -o-transition: bottom .1s cubic-bezier(.4,0,1,1);
  156. transition: bottom .1s cubic-bezier(.4,0,1,1)
  157. }
  158.  
  159. .ytp-fullscreen.html5-video-player .ytp-big-mode .ytp-offline-slate-bar,.ytp-hide-controls .ytp-big-mode .ytp-offline-slate-bar {
  160. bottom: 18px
  161. }
  162.  
  163.  
  164. .ytp-fullscreen.html5-video-player.ytp-embed-overlays-autohide .ytp-overflow-panel {
  165. opacity: 0;
  166. -webkit-transition: opacity .1s cubic-bezier(.4,0,1,1);
  167. -o-transition: opacity .1s cubic-bezier(.4,0,1,1);
  168. transition: opacity .1s cubic-bezier(.4,0,1,1)
  169. }
  170.  
  171. .ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active).ytp-embed-overlays-autohide .ytp-overflow-panel {
  172. display: none
  173. }
  174. .ytp-exp-ppp-update.ytp-big-mode.ytp-fullscreen.html5-video-player .ytp-paid-content-overlay,.ytp-exp-ppp-update.ytp-big-mode.ytp-hide-info-bar .ytp-paid-content-overlay,.ytp-exp-ppp-update.ytp-embed.ytp-fullscreen.html5-video-player .ytp-paid-content-overlay,.ytp-exp-ppp-update.ytp-embed.ytp-hide-info-bar .ytp-paid-content-overlay {
  175. top: 16px
  176. }
  177. .ytp-fullscreen.html5-video-player .ytp-paid-content-overlay,.ytp-iv-drawer-open .ytp-paid-content-overlay {
  178. bottom: 6px;
  179. -webkit-transition: bottom .1s cubic-bezier(.4,0,1,1);
  180. -o-transition: bottom .1s cubic-bezier(.4,0,1,1);
  181. transition: bottom .1s cubic-bezier(.4,0,1,1)
  182. }
  183.  
  184. .ytp-big-mode.ytp-fullscreen.html5-video-player .ytp-paid-content-overlay,.ytp-big-mode.ytp-iv-drawer-open .ytp-paid-content-overlay {
  185. bottom: 12px
  186. }
  187. .ytp-fullscreen.html5-video-player:not(.ytp-fullscreen.html5-video-player-active) .ytp-chrome-top .ytp-shorts-title-channel {
  188. margin-top: 7px
  189. }
  190.  
  191. .ytp-fullscreen.html5-video-player .ytp-webgl-spherical-control,.ytp-hide-info-bar .ytp-webgl-spherical-control {
  192. top: 12px;
  193. -webkit-transition: top .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  194. -o-transition: top .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1);
  195. transition: top .1s cubic-bezier(.4,0,1,1),opacity .1s cubic-bezier(.4,0,1,1)
  196. }
  197.  
  198. .ytp-fullscreen.html5-video-player .caption-window.ytp-caption-window-top,.ytp-hide-info-bar .caption-window.ytp-caption-window-top {
  199. margin-top: 0;
  200. -webkit-transition: margin-bottom .1s cubic-bezier(.4,0,1,1),margin-top .1s cubic-bezier(.4,0,1,1);
  201. -o-transition: margin-bottom .1s cubic-bezier(.4,0,1,1),margin-top .1s cubic-bezier(.4,0,1,1);
  202. transition: margin-bottom .1s cubic-bezier(.4,0,1,1),margin-top .1s cubic-bezier(.4,0,1,1)
  203. }
  204. .ytp-fullscreen.html5-video-player .caption-window.ytp-caption-window-bottom,.ytp-hide-controls .caption-window.ytp-caption-window-bottom,.ytp-muted-autoplay .caption-window.ytp-caption-window-bottom {
  205. margin-bottom: 0;
  206. -webkit-transition: margin-bottom .1s cubic-bezier(.4,0,1,1),margin-top .1s cubic-bezier(.4,0,1,1);
  207. -o-transition: margin-bottom .1s cubic-bezier(.4,0,1,1),margin-top .1s cubic-bezier(.4,0,1,1);
  208. transition: margin-bottom .1s cubic-bezier(.4,0,1,1),margin-top .1s cubic-bezier(.4,0,1,1)
  209. }
  210. .ytp-fullscreen.html5-video-player .ytp-unmute,.ytp-hide-info-bar .ytp-unmute {
  211. top: 0
  212. }
  213. }

QingJ © 2025

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