Minimalize for YouTube SuperAssistant

Transparent description and improve theater mode for: https://greasyfork.org/ja/scripts/521538-youtubeᴾˡᵘˢ-super-assistant-video-downloader-no-ads-new-layout-for-yt

当前为 2025-03-21 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name        Minimalize for YouTube SuperAssistant
@description Transparent description and improve theater mode for: https://greasyfork.org/ja/scripts/521538-youtubeᴾˡᵘˢ-super-assistant-video-downloader-no-ads-new-layout-for-yt
@match       *://www.youtube.com/**
@license     MIT
@version     0.6
@namespace   djshigel
==/UserStyle== */

body::-webkit-scrollbar {
    width: 0 !important;
}

body:has(ytd-watch-flexy[theater]:not([hidden])) {
    overflow: hidden;
}

#masthead[page-dark-theme] {
    background: linear-gradient(#202020, transparent);
}

#content:has(ytd-watch-flexy[theater]:not([hidden])) #masthead[page-dark-theme] {
    background: linear-gradient(#202020, #000000);
    height: 86px;
}

#content:has(ytd-watch-flexy[theater]:not([hidden])) ytd-page-manager {
    margin-top: 86px;
}

@media screen and (min-height: 1270px) and (orientation: landscape),
@media screen and (min-height: 1980px) and (orientation: portrait) {
    #masthead[page-dark-theme] {
        background: linear-gradient(#000, transparent);
    }

    #content:has(ytd-watch-flexy[theater]:not([hidden])) #masthead[page-dark-theme] {
        background: #000;
    }
}

#content:has(#movie_player.ytp-autohide) #masthead[theater] #container {
    opacity: 0;
    transition: opacity .3s;
}

#content:has(#movie_player.ytp-autohide) #masthead[theater]:hover #container {
    opacity: 1;
}

ytd-watch-flexy[is-dark-theme][theater] #columns,
ytd-watch-flexy[theater]:has(#movie_player.ytp-autohide) #columns {
    background: #000;
}

ytd-watch-flexy[theater]:has(#movie_player.ytp-autohide) #columns #primary,
ytd-watch-flexy[theater]:has(#movie_player.ytp-autohide) #columns #secondary {
    opacity: 0;
    transition: opacity .3s;
}

ytd-watch-flexy[theater]:has(#movie_player.ytp-autohide) #columns:hover #primary, 
ytd-watch-flexy[theater]:has(#movie_player.ytp-autohide) #columns:hover #secondary {
    opacity: 1;
}

#movie_player.ytp-autohide .branding-img {
    display: none !important;
}

#description {
    background-color: transparent !important;
    opacity: .7;
}

#description-inner{
    margin-left: 0 !important;
}

#inline-expander, #inline-expander:hover {
    background: transparent;
}

#secondary {
    opacity: .5;
    transition: opacity cubic-bezier(.98, -.01, .69, .11) .5s;
    height: 1000px;
}

#secondary:hover {
    opacity: 1;
}

#material-tabs > a {
    background-color: var(--yt-active-playlist-panel-background-color) !important;
}

.ytp-button[aria-label="Hide chats"], .ytp-button[aria-label="Show chats"] {
    margin-top: 5px;
    margin-right: 10px;
}