YouTube FullScreen No Controls

Make YouTube FullScreen No Controls

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

QingJ © 2025

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