YT簡化自訂控制項

YT簡化-控制項+按鈕+進度條自定義修改youtube Simplify - control items + buttons + progress bar customize

安装为用户样式?
作者推荐脚本

您可能也喜欢Tabview Youtube

安装此脚本
  1. /* ==UserStyle==
  2. @name YT簡化自訂控制項
  3. @description YT簡化-控制項+按鈕+進度條自定義修改youtube Simplify - control items + buttons + progress bar customize
  4. @namespace https://gf.qytechs.cn/zh-TW/users/4839
  5. @author leadra
  6. @preprocessor stylus
  7. @version 2.0.2
  8. @license MIT
  9. @var checkbox ctrl_thin "控制項簡化" 1
  10. @var checkbox hide_btn "隱藏自動播放" 1
  11. @var checkbox hide_btn1 "隱藏子母+迷你播放器" 1
  12. @var checkbox hide_btn2 "隱藏劇院+全螢幕" 1
  13. @var checkbox hide_btn3 "隱藏按鈕下載+超級感謝" 1
  14. @var checkbox hide_section "隱藏頻道音樂遊戲資訊" 0
  15. @var checkbox hide_right "隱藏右+下欄位" 0
  16. @var checkbox info_hide "隱藏影片右下資訊卡" 1
  17. @var checkbox hide_endcard "隱藏結束卡-移入才顯示" 1
  18. @var checkbox hide_ctrl "隱藏控制列-移入才顯示" 1
  19. @var checkbox hide_ico "隱藏標題右按鈕文字" 1
  20. @var checkbox btn_text "縮短會員+訂閱按鈕文字" 1
  21. @var color sub_background "未訂閱背景色" rgba(255, 0, 0, .5)
  22. @var checkbox title_h "縮短標題列間距" 1
  23. @var number title_top ">標題上間距" [0, -50, 50, 5, "px"]
  24. @var number title_line ">標題行距" [1, 0, 2, 0.1, "em"]
  25. @var number title_wi ">標題破行%" [110, 0, 150, 5, "%"]
  26. @var checkbox hide_ad "影片推薦-廣告隱藏" 1
  27. @var checkbox ad_resume "影片推薦-看過影片變暗" 0
  28. @var checkbox noround_livechat "圓角去除-聊天室+影片" 0
  29. @var checkbox noround_btn "圓角去除-按鈕" 0
  30. @var checkbox progress_bar "進度條自定義" 1
  31. @var number progress_bar_size "進度條圖片大小" [40, 0, 200, 10, "px"]
  32. @var text progress_url "進度條URL" ""https://raw.githubusercontent.com/leadra/pic/main/kurara.gif""
  33. @var checkbox scroll_hide "卷軸隱藏" 1
  34. @var checkbox chat_teaser "聊天室預告面板隱藏" 1
  35. @var checkbox tab_h "*腳本Tabview>按鈕縮小" 1
  36. @var checkbox tab_t ">按鈕上移" 1
  37. @var checkbox scroll_thin ">Tab卷軸thin" 1
  38. @var checkbox times_watched ">觀看次數位置上移" 0
  39. @var checkbox comment_width ">評論邊界縮小" 1
  40. @var number comment_size ">評論資訊文字大小" [17, 10, 30, 1, "px"]
  41. @var checkbox chat_ma ">totara聊天室框架邊界" 1
  42. @var checkbox fix_for_ytlc "*擴充YouTubeLiveClock" 1
  43. @var number ytliveclock ">控制列下移間距修正" [40, 0, 50, 5, "px"]
  44. @var checkbox below_controls "*腳本Youtube Player Controls below Video修正" 0
  45. ==/UserStyle== */
  46.  
  47. /*
  48. 搭配腳本用:
  49. ----------Tabview(腳本)---------按鈕極小化
  50. https://gf.qytechs.cn/zh-TW/scripts/428651
  51. >>>觀看次數位置上移(搭配Tabview服用,以免標題列變窄)
  52. >>>卷軸Y隱藏
  53.  
  54. YT Speed Buttons(L改)
  55. https://gf.qytechs.cn/zh-TW/scripts/484535
  56. >>>按鈕位置修改+大小
  57. */
  58.  
  59. /*引用感謝[CSS]
  60. YT隱藏控制項(滑鼠移入才會顯示https://gf.qytechs.cn/zh-TW/scripts/446045
  61. YT隱藏進度條(滑鼠移入才會顯示https://gf.qytechs.cn/zh-TW/scripts/437994
  62. YT播放器簡化https://gf.qytechs.cn/zh-TW/scripts/445999
  63. YT網頁版面調整https://github.com/sapondanaisriwan/AdashimaaTube
  64. YT進度條突出顯示https://gf.qytechs.cn/zh-TW/scripts/402635
  65. YT主題:皮卡丘介面https://userstyles.org/styles/194352/poketube
  66. YT電影廣告消除https://gf.qytechs.cn/zh-TW/scripts/468212
  67. YT所有頁面:看過影片變暗https://gf.qytechs.cn/zh-TW/scripts/419722
  68. YT隱藏「下載、剪輯和感謝(包括推廣)」按鈕https://gf.qytechs.cn/zh-TW/scripts/447614
  69. YT隱藏結束卡https://gf.qytechs.cn/zh-TW/scripts/408725
  70. YT會員訂閱按鈕https://github.com/sapondanaisriwan/AdashimaaTube/blob/master/userstyles/features/red-subscribe-button.user.css
  71. */
  72. @-moz-document url-prefix("https://www.youtube.com/watch"), url-prefix("https://www.youtube.com/shorts/"), url-prefix("https://www.youtube.com/live/") {
  73. /*顯示隱藏即時通訊鈕-高度調整//@var checkbox hide_chat_head "即時通訊鈕緊縮" 0
  74. if hide_chat_head{
  75. #show-hide-button > .ytd-live-chat-frame.style-scope{padding:0px!important;margin: -0px 0px -0px 0px!important;}
  76. //文字部分.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--text{padding:0px!important;margin: -0px 0px -0px 0px!important;line-height:1em;height:1em;opacity:0.5;}
  77. //tabview聊天室新開視窗按鈕位置修正ytd-watch-flexy[flexy][is-two-columns_] #chat.tyt-chat-frame-ready:not([collapse]) tyt-iframe-popup-btn.tyt-btn-enabled {padding: 0px !important;margin: 0px 30px -0px 0px!important;width:2em;height:2em;bottom:auto;}}*/
  78.  
  79. //訂閱提醒框隱藏反黑
  80. yt-notification-action-renderer[darker-dark-theme] tp-yt-paper-toast.yt-notification-action-renderer{background-color: rgb(39, 39, 39);display:none !important;}
  81.  
  82. //去除圓角-聊天室+影片
  83. if noround_livechat {
  84. ytd-live-chat-frame#chat.ytd-watch-flexy{
  85. border-radius: 0px;
  86. }
  87. ytd-watch-flexy[rounded-player-large]:not([fullscreen]):not([theater]) #ytd-player.ytd-watch-flexy {
  88. border-radius: 0px !important;
  89. }}
  90. //去除圓角-按鈕
  91. if noround_btn {
  92. html .yt-spec-button-shape-next--size-m,
  93. html .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--segmented-start,
  94. html .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-button.yt-spec-button-shape-next--segmented-end{
  95. border-radius:0;
  96. }}
  97. //控制項簡化:保留音量提示
  98. if ctrl_thin{
  99. .ytp-bezel,//中間LOGO
  100. .ytp-doubletap-ui-legacy,//左右側前進、後退
  101. .ytp-doubletap-ui,//去除縮略圖上的播放提示
  102. .ytp-gradient-top,//上邊漸進黑
  103. //.ytp-gradient-bottom,//下邊漸進黑
  104. .ytp-chrome-top,//全螢幕上方標題
  105. .ytp-pause-overlay,//暫停
  106. //.annotation//註解
  107. //.ytp-pip-button.ytp-button,//子母畫面(舊版)
  108. //.ytp-size-button.ytp-button,//劇院模式
  109. //.ytp-miniplayer-button.ytp-button,//迷你
  110. //.ytp-autonav-toggle-button,//自動播放(背景元素無法去除)
  111. //.c4-player-container.c4-flexible-player-container,
  112. ytd-thumbnail-overlay-loading-preview-renderer{
  113. display:none !important;
  114. }
  115.  
  116. }
  117. /*隱藏控制列-移入顯示+控制列黑底*/
  118. if hide_ctrl{
  119. .ytp-gradient-bottom,.ytp-chrome-bottom {opacity:0;}
  120. .ytp-chrome-bottom:hover {opacity:1;background:rgba(0, 0, 0, .4);}
  121. }
  122.  
  123. /*隱藏按鈕>自動播放;子母畫面(新版)+迷你;劇院+全螢幕*/
  124. if hide_btn{[data-tooltip-target-id="ytp-autonav-toggle-button"],{display:none !important;}}
  125. if hide_btn1{#movie_player div.ytp-chrome-controls button.ytp-pip-button.ytp-button,.ytp-miniplayer-button{display:none !important;}}
  126. if hide_btn2{.ytp-size-button,.ytp-fullscreen-button{display:none !important;}}//.ytp-multicam-button,.ytp-remote-button,.ytp-settings-button
  127.  
  128. /*隱藏按鈕>下載+超級感謝*/
  129. if hide_btn3{ytd-download-button-renderer ,#flexible-item-buttons [aria-label="Thanks"],#flexible-item-buttons [aria-label="超級感謝"] {display: none !important;}}
  130. //yt-button-view-model:has([aria-label="超級感謝"]) {display: none !important;}
  131.  
  132. /*建議影片-電影購買+廣告隱藏*/
  133. if hide_ad{
  134. //建議影片-電影購買[https://gf.qytechs.cn/zh-TW/scripts/468212]
  135. ytd-watch-next-secondary-results-renderer.ytd-watch-flexy ytd-compact-movie-renderer.style-scope.ytd-item-section-renderer ,#offer-module.ytd-watch-next-secondary-results-renderer{display: none;}
  136. //建議影片-廣告
  137. td-promoted-sparkles-web-renderer,ytd-ad-slot-renderer{display: none;}
  138. }
  139. /*建議影片-看過影片變暗[原作者腳本全站通用https://gf.qytechs.cn/zh-TW/scripts/419722]*/
  140. if ad_resume{
  141. //#progress.ytd-thumbnail-overlay-resume-playback-renderer {bottom: 0px; position: absolute;z-index:1;background: rgba(0, 0, 0, .5);min-height: 95px;}
  142. ytd-thumbnail-overlay-resume-playback-renderer::after {
  143. background: rgba(0, 0, 0, .5);
  144. content: "看過"; //text-align:center;
  145. font-size:20px;
  146. display: block;
  147. bottom: 0;
  148. height: 95px;
  149. width: 100%;
  150. position: absolute;
  151. z-index: 10;
  152. }}
  153. //隱藏資訊卡
  154. if info_hide {#columns #player .ytp-iv-player-content, ytd-watch-flexy .ytp-iv-player-content{display: none;}}
  155.  
  156. //縮短標題列間距
  157. if title_h{
  158. //Enhancer for YouTube™修正
  159. html[tyt-deferred][sxmq8="1"] ytd-watch-flexy:not([hidden]) ytd-watch-metadata.style-scope.ytd-watch-flexy{margin: 0px 0px -0px 0px!important;padding:0 !important;}
  160. //Tabview
  161. body ytd-watch-flexy[cinematics-enabled] #below.ytd-watch-flexy{margin: 0px 0px 0px 0px!important;}
  162. //無Tabview
  163. ytd-watch-metadata.ytd-watch-flexy,[rounded-info-panel] #clarify-box.ytd-watch-flexy{margin: 0px 0px 0px 0px!important;}
  164. //標題上間距
  165. #below h1.ytd-watch-metadata ,yt-formatted-string[data-title-details]{line-height:title_line;margin: title_top 0px -0px 0px!important;width:title_wi}
  166. //頻道名稱上下方空白
  167. .style-scope.ytd-watch-metadata{padding:0px 0px!important;margin: -0px 0px -0px 0px!important;}
  168. #top-row.ytd-watch-metadata{margin: -0px 0px -0px 0px!important;}
  169. //會員專屬標題
  170. .badge-style-type-members-only.ytd-badge-supported-renderer {margin:-0px 0px -60px 140px; position:relative; z-index: 1; background: rgba(0, 0, 0, .5);}
  171. //頻道名稱
  172. .style-scope.ytd-video-owner-renderer{
  173. padding:0px 0px;
  174. margin: 0px 0px 0px -0px!important;
  175. //max-width: 350px!important;
  176. line-height:1em!important;
  177. }
  178. //.ytd-channel-name{padding:0px 0px 0px 0px;margin: 0px 0px 0px -0px;}
  179. //#upload-info.ytd-video-owner-renderer{padding:0;margin: -0px 0px -0px -0px!important;}
  180. //頻道訂閱數
  181. #owner-sub-count.ytd-video-owner-renderer{
  182. font-size: 16px;
  183. line-height:1em!important;
  184. }
  185. //觀看次數文字
  186. #info-container.ytd-watch-info-text{
  187. margin: 0px 0px 0px 10px!important;
  188. padding:0px!important;
  189. font-size:18px!important;
  190. }
  191. //標題列右側按鈕
  192. //#actions-inner.ytd-watch-metadata{max-width: 100%;}
  193. //按鈕靠右對齊
  194. /*ytd-watch-metadata #actions.item.style-scope.ytd-watch-metadata{
  195. justify-content: end !important;
  196. display:flex;
  197. }*/
  198. .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-leading-trailing .yt-spec-button-shape-next__secondary-icon{margin:0px;}
  199. .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal {padding:0px 5px;}
  200. //.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-leading-trailing .yt-spec-button-shape-next__icon{margin: 0px;}
  201. //.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-leading .yt-spec-button-shape-next__icon {margin: 0px;}
  202. .yt-spec-button-shape-next__icon{margin: 0px!important;}
  203. }
  204.  
  205. //縮短會員+訂閱按鈕文字
  206. if btn_text{
  207. //標題列加入會員按鈕#owner
  208. ytd-button-renderer .yt-spec-button-shape-next__button-text-content{
  209. //max-width:3em;
  210. font-weight:bold;
  211. font-size: 1.6em;
  212. margin: -0px -0px -0px -0px!important;
  213. padding: 0px!important;
  214. }
  215. /*會員訂閱按鈕*/
  216. #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button {
  217. //小鈴鐺已訂閱&.yt-spec-button-shape-next.yt-spec-button-shape-next--tonal {background-color:sub_background !important;}
  218. /*下拉箭頭*/
  219. > div {&.yt-spec-button-shape-next__secondary-icon {display: none !important;}}
  220. }
  221. //已加會員按鈕
  222. yt-button-shape:not(:hover) {
  223. .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled {
  224. color: var(--yt-spec-static-brand-white) !important;
  225. background-color: rgba(255, 255, 255, .3) !important;//var(--yt-spec-badge-chip-background)
  226. border-style:double;
  227. padding: 0px 10px !important;
  228. }
  229. }
  230. //未訂閱(含Shorts)
  231. yt-button-shape.ytd-subscribe-button-renderer:not([hidden]) {
  232. .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled ,
  233. .yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--filled {
  234. color: var(--yt-spec-static-brand-white) !important;
  235. background-color: sub_background !important;//var(--yt-spec-badge-chip-background)
  236. padding: 0px 10px !important;
  237. }
  238. }
  239. //標題列訂閱按鈕
  240. #subscribe-button-shape .yt-spec-button-shape-next__button-text-content{
  241. max-width:1em;
  242. font-weight:bold;
  243. font-size: 1.5em;
  244. margin: -0px -0px -0px -0px!important;
  245. padding: 0px!important;
  246. }
  247. ytd-subscribe-button-renderer .yt-spec-button-shape-next__button-text-content{max-width:0em;}
  248. ytd-video-owner-renderer .yt-spec-button-shape-next__button-text-content{max-width:1em;}
  249. //span.yt-core-attributed-string.yt-core-attributed-string--white-space-no-wrap {display: none;}
  250. }
  251.  
  252. //隱藏標題列右側按鈕文字
  253. if hide_ico {
  254. yt-button-view-model .yt-spec-button-shape-next__button-text-content,
  255. ytd-download-button-renderer .yt-spec-button-shape-next__button-text-content ,
  256. yt-touch-feedback-shape .yt-spec-button-shape-next__button-text-content,
  257. {display: none !important;}
  258. }
  259.  
  260. //隱藏頻道音樂遊戲資訊🎵🎮
  261. if hide_section{ytd-video-description-infocards-section-renderer , ytd-horizontal-card-list-renderer.style-scope.ytd-structured-description-content-renderer , #contents.ytd-rich-metadata-row-renderer {display: none ;}}
  262. //隱藏右+下欄位
  263. if hide_right{ytd-watch-flexy[cinematics-enabled] #secondary.ytd-watch-flexy {display: none ;}//{position: fixed ; z-index: 1;left:0;opacity:0.7}
  264. ytd-watch-metadata.watch-active-metadata.style-scope.ytd-watch-flexy{display: none ;}
  265. }
  266.  
  267. //隱藏結束連結卡
  268. if hide_endcard {
  269. div[class*="video-player"]:not(:hover) div[class^="ytp-ce"],
  270. div[class*="ytp-autohide"] div[class^="ytp-ce"] {
  271. display: none !important;
  272. }}
  273.  
  274. /*炒飯進度條*/
  275. if progress_bar{
  276. .ytp-scrubber-button,.ytp-play-progress {
  277. background: #ffe100a6;
  278. transform: rotate(0deg);
  279. filter: drop-shadow(0 0 1px gold) drop-shadow(0 0 2px gold) drop-shadow(0 0 3px gold);
  280. }
  281. /*控制項高亮*/
  282. .ytp-volume-panel:hover,
  283. .ytp-chrome-controls a:hover svg,
  284. .ytp-chrome-controls button:hover svg {
  285. filter: drop-shadow(0 0 1px black) drop-shadow(0 0 2px gold) drop-shadow(0 0 5px gold) !important;
  286. }
  287. //進度條調整
  288. .ytp-scrubber-pull-indicator {
  289. background-color: #fff0;
  290. height: progress_bar_size;
  291. width: progress_bar_size;
  292. background-image: url(progress_url);
  293. background-repeat: no-repeat;
  294. background-position: center;
  295. background-size: progress_bar_size;
  296. bottom: 0px;
  297. left: progress_bar_size *-(6.5/10) ;
  298. transform: rotate(0deg);
  299. transform: scale(1.1);
  300. border-radius: 0px
  301. }}
  302.  
  303. /*
  304. @var checkbox chat_height "聊天室延伸(tabview衝突)" 0
  305. @var number chat_width "聊天室欄寬" [400, 300, 800, 10, "px"]
  306. // 聊天室延伸(tabview腳本衝突) チャット欄を画面一番下まで伸ばす
  307. if chat_height { ytd-live-chat-frame#chat {height: calc(100vh *0.92) !important; //height: calc(100vh - 100px)}
  308. // chat欄位無邊界+影片上方空白消除+chat聊天室欄寬
  309. #columns {margin: -0px 0px 0px 0px !important; max-width: 100% !important;
  310. & > #primary,& > #secondary{padding-top: 0!important;}
  311. & > #secondary {width: chat_width;}}}
  312. */
  313. //卷軸隱藏
  314. if scroll_hide{
  315. html {
  316. scrollbar-color: none !important;
  317. scrollbar-width: none !important;
  318. }
  319. ::-webkit-scrollbar {
  320. display:none!important;
  321. }
  322. }
  323. //Tabview(腳本)按鈕極小化
  324. if tab_h {
  325. ytd-watch-flexy #right-tabs .tab-btn[tyt-tab-content]{
  326. padding:0;
  327. font-size:18px;
  328. line-height:1em;
  329. }
  330. }
  331. //Tabview(腳本)按鈕上移 (Tabview Youtube Design Customization功能合併)https://gf.qytechs.cn/zh-TW/scripts/467638
  332. if tab_t {
  333. ytd-watch-flexy[tyt-chat^="+"] #secondary-inner.style-scope.ytd-watch-flexy {
  334. display:flex;
  335. flex-direction: column;
  336. }
  337. ytd-watch-flexy[tyt-chat^="+"] #chat-container, ytd-watch-flexy[tyt-chat^="+"] ytd-live-chat-frame#chat {
  338. order: 99;
  339. }
  340. ytd-watch-flexy[is-two-columns_][tyt-chat][tyt-chat^="+"] #secondary-inner.style-scope.ytd-watch-flexy #right-tabs {
  341. --tyt-right-tabs-margin-top: 0;
  342. --tyt-right-tabs-margin-bottom: var(--tyt-right-tabs-margin-size);
  343. }
  344. }
  345.  
  346. //Tab卷軸none #tab-comments #tab-videos #tab-info
  347. ytd-watch-flexy #right-tabs .tab-content-cld{
  348. scrollbar-width: none !important;
  349. }
  350. //Tab卷軸thin
  351. if scroll_thin{
  352. ytd-watch-flexy #right-tabs .tab-content-cld{
  353. scrollbar-width: thin !important;
  354. }
  355. }
  356. //觀看次數上移
  357. if times_watched {
  358. //觀看次數區ytd-watch-flexy[rounded-player-large]:not([fullscreen]):not([theater]) #ytd-player.ytd-watch-flexy
  359. ytd-watch-flexy[rounded-player-large]:not([fullscreen]):not([theater]) #bottom-row.ytd-watch-metadata{
  360. font-size:13em!important;
  361. margin: -0px 0px 0px 0px!important;
  362. max-width: 35%!important;
  363. max-height: 30px!important;
  364. position: absolute;//absolute//relative
  365. z-index:111;
  366. left:28%;
  367. bottom:10px;
  368. }
  369. //隱藏文字無影片說明
  370. #description-placeholder.ytd-watch-metadata{display:none !important;}
  371. }
  372. //聊天室預告面板隱藏
  373. if chat_teaser{
  374. #comment-teaser.ytd-watch-metadata, #teaser-carousel.ytd-watch-metadata{display:none !important;}
  375. }
  376.  
  377. //評論邊界+文字大小
  378. if comment_width {
  379. #content-text.ytd-comment-view-model{
  380. font-size:comment_size;
  381. }
  382. ytd-watch-flexy .tab-content-cld#tab-comments{
  383. padding:0px 0px !important;
  384. margin:0px 0px 0px 0px !important;
  385. overflow-x:hidden;
  386. //position:relative;
  387. }
  388. #body.ytd-comment-view-model{
  389. margin:0px 0px 0px 0px !important;
  390. ytd-expander>*{
  391. padding:0px !important;
  392. margin:0px 10px 0px 0px !important;
  393. width: 105%!important;
  394. }
  395. }
  396. .ytd-comment-view-model{
  397. padding:0px !important;
  398. margin:0px 0px 0px 0px !important;
  399. }
  400. .ytd-comment-view-model #author-thumbnail{
  401. padding:0px !important;
  402. margin:0px 5px 0px 0px !important;
  403. }
  404. //間距+回復間距
  405. #comments *:not(#button):not(paper-button):not(ytd-button-renderer):not(#header):not(button):not(#tooltip):not(paper-item),#meta *:not(#upload-info):not(paper-button){
  406. //font-size: comment_size!important;
  407. padding:0px !important;
  408. margin-top: 0px !important;
  409. margin-bottom: 0px !important;
  410. }
  411. #comments .ytd-comments > #header { margin-bottom: 15px!important; }
  412. ytd-comment-replies-renderer{
  413. //font-size: comment_size!important;
  414. margin-left: 0px!important;
  415. background-color: rgba(100, 100, 100, .2);
  416. }
  417. }
  418. //資訊文字大小
  419. #tab-info [class]:last-child,
  420. //#description.ytd-expandable-video-description-body-renderer
  421. //#description.ytd-video-secondary-info-renderer
  422. #description{
  423. font-size:comment_size;
  424. }
  425. //totara聊天室框架邊界
  426. if chat_ma {
  427. #playlist.ytd-watch-flexy{
  428. margin-bottom: 1px;
  429. }
  430. ytd-watch-flexy.style-scope:not([fullscreen]) {
  431. --ytd-margin-6y: none !important;
  432. }
  433. }
  434.  
  435. //擴充YouTubeLiveClock控制列間距修正https://chromewebstore.google.com/detail/youtubeliveclock/chpodcedholiggcllnmmjlnghllddgmj
  436. /*html:has(style#ytlc-style-for-native-control) ytd-watch-flexy[flexy][is-two-columns_][theater] #columns.ytd-watch-flexy,
  437. html:has(style#ytlc-style-for-native-control) #columns.ytd-watch-flexy #player::after {
  438. margin: ytliveclock 0px 0px 0px!important;
  439. padding:0px!important;}*/
  440. if fix_for_ytlc {
  441. @supports (color: var(--compatibile-with-chrome-plugin-youtube-live-clock-20240123)) {
  442.  
  443. /* 2024/01/23 - specific fix for YouTubeLiveClock - chrome only */
  444. html:has(style#ytlc-style-for-native-control) #columns.ytd-watch-flexy #player::after {
  445. content: "";
  446. //border-style: dotted;
  447. display: flex;
  448. margin: ytliveclock 0px 0px 0px!important;
  449. }
  450. html:has(style#ytlc-style-for-native-control) #columns.ytd-watch-flexy #below {
  451. transform: initial;
  452. }
  453. }
  454. }
  455. //Youtube Player Controls below Video間距修正+強制顯示https://gf.qytechs.cn/scripts/469704
  456. if below_controls{
  457. .yt8447-enabled:not([fullscreen]) #below.ytd-watch-flexy, .yt8447-enabled[theater]:not([fullscreen]) #secondary.ytd-watch-flexy {
  458. margin-top: 40px!important;
  459. }
  460. .playing-mode> .ytp-chrome-bottom:not(:hover) {opacity:1!important;visibility:visible!important;}
  461. }
  462.  
  463. }

QingJ © 2025

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