게시판 » 개발

Can someone make this script work properly

/* ==UserStyle==
@name YouTube Late 2019-November 2020 Polymer Layout
@version 2.1.5
@namespace userstyles.world/user/magma_craft
@description This userstyle reverts back YouTube to the one from late 2019 until early-November 2020.
@author magma_craft
@license CC Zero
@preprocessor stylus
@var checkbox brightVerify "Bright verification ticks" 0
==/UserStyle== */

@-moz-document domain("youtube.com") {
ytd-masthead {
background: var(--yt-spec-brand-background-solid) !important;
}

ytd-app {
background: var(--yt-spec-general-background-a) !important;
}

ytd-browse[page-subtype="channels"] {
background: var(--yt-spec-general-background-b) !important;
}

ytd-c4-tabbed-header-renderer {
--yt-lightsource-section1-color: var(--yt-spec-general-background-a) !important;
}

/* Topbar, sidebar and buttons adjustments */
#start.ytd-masthead {
width: 185px;
}

yt-icon.ytd-logo {
width: 80px;
height: 24px;
}

ytd-searchbox.style-scope.ytd-masthead {
height: 32px;
padding-right: 44px;
}

form#search-form.style-scope.ytd-searchbox {
height: 32px;
}

button#search-icon-legacy.style-scope.ytd-searchbox {
width: 65px;
height: 32px;
}

button#search-icon-legacy.ytd-searchbox yt-icon.ytd-searchbox {
max-width: 20px;
max-height: 20px;
}

#container.ytd-searchbox {
background-color: var(--ytd-searchbox-background) !important;
border-radius: 2px 0 0 2px !important;
box-shadow: inset 0 1px 2px var(--ytd-searchbox-legacy-border-shadow-color) !important;
color: var(--ytd-searchbox-text-color) !important;
padding: 2px 6px !important;
margin: 0 !important;
}

#container.ytd-searchbox > [slot=search-input] input {
box-sizing: border-box !important;
padding: 1px 6px !important;
margin: 0 !important;
}

ytd-searchbox[has-focus] #search-icon.ytd-searchbox {
display: none !important;
}

ytd-searchbox[has-focus] #container.ytd-searchbox {
padding: 2px 6px 2px 6px;
margin: 0 !important;
}

ytd-searchbox[desktop-searchbar-style="rounded_corner_dark_btn"] #searchbox-button.ytd-searchbox {
display: none !important;
}

ytd-searchbox[desktop-searchbar-style="rounded_corner_light_btn"] #searchbox-button.ytd-searchbox {
display: none !important;
}

#search[has-focus] #search-input {
margin-left: 0px !important;
}

#search-icon-legacy.ytd-searchbox {
display: block !important;
border-radius: 0px 2px 2px 0px;
}

div.style-scope.ytd-searchbox {
border-radius: 2px 0px 0px 2px !important;
margin-left: 0px !important;
padding-left: 6px !important;
}

button.style-scope.ytd-searchbox {
border-radius: 0px 2px 2px 0px !important;
}

#search-icon.ytd-searchbox {
padding-right: 10px !important;
padding-left: 10px !important;
}

#container.ytd-searchbox > [slot=search-input] input {
box-sizing: border-box !important;
padding: 1px 6px !important;
margin: 0 !important;
}

div.sbsb_a {
border-radius: 2px !important;
}

#container.ytd-searchbox {
margin-left: 0px !important;
}

#container.ytd-searchbox > [slot=search-input] input {
box-sizing: border-box !important;
padding: 1px 6px !important;
margin: 0 !important;
}

ytd-searchbox[has-focus] #search-icon.ytd-searchbox {
display: none !important;
}

ytd-searchbox[has-focus][desktop-searchbar-style=rounded_corner_dark_btn] #search-icon.ytd-searchbox, ytd-searchbox[has-focus][desktop-searchbar-style=rounded_corner_light_btn] #search-icon.ytd-searchbox {
display: none !important;
}

ytd-searchbox[has-focus] #container.ytd-searchbox {
padding: 2px 6px 2px 6px !important;
margin: 0 !important;
}

#search[has-focus] #search-input {
margin-left: 0px !important;
}

div.sbqs_c::before {
display: none !important;
}

span.sbpqs_a::before {
display: none !important;
}

yt-icon.style-scope.ytd-searchbox {
color: var(--yt-spec-text-secondary) !important;
}

#voice-search-button.ytd-masthead {
display: none;
}

div.yt-spec-icon-badge-shape__badge {
left: 14px;
min-width: 10px;
max-width: 10px;
height: 18px;
border: 0px;
font-size: 10px;
line-height: 18px;
}

ytd-button-renderer[is-paper-button] yt-icon.ytd-button-renderer {
width: 24px;
height: 24px;
}

#label-icon.yt-dropdown-menu {
color: var(--yt-spec-text-secondary) !important;
}

#icon-label.yt-dropdown-menu {
color: var(--yt-spec-text-secondary) !important;
}

yt-chip-cloud-chip-renderer {
height: 32px !important;
border: 1px solid var(--yt-spec-10-percent-layer) !important;
border-radius: 16px !important;
box-sizing: border-box !important;
}

[page-subtype="home"] #chips-wrapper.ytd-feed-filter-chip-bar-renderer {
background-color: var(--yt-spec-brand-background-primary) !important;
border-top: 1px solid var(--yt-spec-10-percent-layer) !important;
border-bottom: 1px solid var(--yt-spec-10-percent-layer) !important;
}

yt-chip-cloud-chip-renderer[chip-style=STYLE_DEFAULT][selected], yt-chip-cloud-chip-renderer[chip-style=STYLE_HOME_FILTER][selected] {
background-color: var(--yt-spec-icon-active-other) !important;
}

yt-chip-cloud-chip-renderer[chip-style=STYLE_DEFAULT][selected]:hover, yt-chip-cloud-chip-renderer[chip-style=STYLE_HOME_FILTER][selected]:hover, yt-chip-cloud-chip-renderer[chip-style=STYLE_DEFAULT][selected]:focus, yt-chip-cloud-chip-renderer[chip-style=STYLE_HOME_FILTER][selected]:focus {
background-color: var(--yt-spec-icon-inactive) !important;
}

ytd-feed-filter-chip-bar-renderer[component-style=FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID] #chips-wrapper.ytd-feed-filter-chip-bar-renderer {
background-color: transparent !important;
}

yt-related-chip-cloud-renderer.style-scope.ytd-watch-next-secondary-results-renderer {
display: none;
}

div#chip-bar.style-scope.ytd-search-header-renderer {
display: none !important;
}

ytd-item-section-renderer.style-scope.ytd-watch-next-secondary-results-renderer {
margin-top: -8px;
}

#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Shorts"] {
display: none;
}

a.yt-simple-endpoint.style-scope.ytd-mini-guide-entry-renderer[title="Shorts"] {
display: none;
}

#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Podcasts"] {
display: none;
}

#endpoint.yt-simple-endpoint.ytd-guide-entry-renderer.style-scope[title="Downloads"] {
display: none;
}

ytd-guide-entry-renderer > a[href*="/channel/UCkYQyvc_i9hXEo4xic9Hh2g"] {
display: none !important;
}

#guide-content.ytd-app {
background: var(--yt-spec-brand-background-solid) !important;
}

ytd-guide-entry-renderer[guide-refresh] {
width: 100% !important;
border-radius: 0px !important;
}

tp-yt-paper-item.style-scope.ytd-guide-entry-renderer {
border-radius: 0px !important;
padding-left: 24px !important;
}

ytd-guide-section-renderer.style-scope.ytd-guide-renderer {
padding-left: 0px !important;
}

ytd-guide-entry-renderer[active] {
border-radius: 0px !important;
}

.style-scope.ytd-guide-entry-renderer:hover {
border-radius: 0 !important;
}

ytd-mini-guide-renderer {
background-color: var(--yt-spec-brand-background-solid) !important;
}

ytd-mini-guide-entry-renderer {
background-color: var(--yt-spec-brand-background-solid) !important;
border-radius: 0 !important;
}

ytd-mini-guide-renderer[guide-refresh] {
padding: 0 !important;
}

#guide-section-title.ytd-guide-section-renderer {
color: var(--yt-spec-text-secondary) !important;
padding: 8px 24px !important;
font-size: var(--ytd-tab-system-font-size) !important;
font-weight: var(--ytd-tab-system-font-weight) !important;
letter-spacing: var(--ytd-tab-system-letter-spacing) !important;
text-transform: var(--ytd-tab-system-text-transform) !important;
}

/* Remove Shorts section */
ytd-rich-shelf-renderer[is-shorts] {
display: none !important;
}

ytd-reel-shelf-renderer.style-scope.ytd-item-section-renderer {
display: none !important;
}

/* Watch layout adjustments + old channel UI */
ytd-watch-metadata {
display: none !important;
}

#meta-contents[hidden], #info-contents[hidden] {
display: block !important;
}

#comment-teaser.ytd-watch-metadata {
display: none !important;
}

#owner.ytd-watch-metadata {
border: none !important;
}

ytd-watch-metadata:not([modern-metapanel]) #owner.ytd-watch-metadata {
border: none !important;
}

ytd-watch-metadata[smaller-yt-sans-light-title] h1.ytd-watch-metadata {
font-family: "Roboto",sans-serif;
font-weight: 400;
font-size: 18px;
}

ytd-video-primary-info-renderer[use-yt-sans20-light] .title.ytd-video-primary-info-renderer {
font-family: "Roboto",sans-serif;
font-weight: 400;
font-size: 18px;
}

.yt-formatted-string[style-target="bold"] {
font-weight: 400;
}

div#clarify-box.attached-message.style-scope.ytd-watch-flexy {
margin-top: 0px !important;
}

ytd-clarification-renderer.style-scope.ytd-item-section-renderer {
border: 1px solid !important;
border-color: #0000001a !important;
border-radius: 0px !important;
}

ytd-clarification-renderer.style-scope.ytd-watch-flexy {
border: 1px solid !important;
border-color: #0000001a !important;
border-radius: 0px !important;
}

yt-formatted-string.description.style-scope.ytd-clarification-renderer {
font-size: 1.4rem !important;
}

div.content-title.style-scope.ytd-clarification-renderer {
padding-bottom: 4px !important;
}

ytd-rich-metadata-renderer[rounded] {
border-radius: 0px !important;
}

#meta #avatar {
width: 48px;
height: 48px;
margin-right: 16px;
}

#meta #avatar img {
width: 100%;
}

#channel-name.ytd-video-owner-renderer {
font-size: 1.4rem;
line-height: 1.6rem !important;
}

#info.ytd-video-primary-info-renderer {
height: 40px !important;
}

ytd-menu-renderer.style-scope.ytd-video-primary-info-renderer > div#top-level-buttons-computed.top-level-buttons.style-scope.ytd-menu-renderer > ytd-toggle-button-renderer.force-icon-button.style-text.style-scope.ytd-menu-renderer.force-icon-button > a.yt-simple-endpoint.style-scope.ytd-toggle-button-renderer > yt-icon-button#button.style-scope.ytd-toggle-button-renderer.style-text > button#button.style-scope.yt-icon-button > yt-icon.style-scope.ytd-toggle-button-renderer {
width: 20px;
height: 20px;
}

yt-icon.style-scope.ytd-button-renderer {
width: 20px;
height: 20px;
}

yt-formatted-string.style-scope.ytd-toggle-button-renderer.style-text {
font-size: 1.3rem;
letter-spacing: 0.007px;
}

yt-formatted-string.style-scope.ytd-toggle-button-renderer.style-default-active {
font-size: 1.3rem;
letter-spacing: 0.007px;
}

yt-formatted-string.style-scope.ytd-button-renderer.style-default.size-default {
font-size: 1.3rem;
letter-spacing: 0.007px;
}

ytd-toggle-button-renderer.force-icon-button a.ytd-toggle-button-renderer {
font-size: 1.3rem;
letter-spacing: 0.007px;
}

yt-formatted-string.style-scope.ytd-button-renderer.style-visibly-disabled.size-default {
font-size: 1.3rem;
letter-spacing: 0.007px;
}

ytd-button-renderer.style-scope.ytd-menu-renderer.force-icon-button.style-default.size-default {
padding-right: 2px;
}

ytd-menu-renderer:not([condensed]) .ytd-menu-renderer[button-renderer]+.ytd-menu-renderer[button-renderer], .ytd-menu-renderer[button-renderer]+template.ytd-menu-renderer+#button.ytd-menu-renderer, #flexible-item-buttons.ytd-menu-renderer:not(:empty)>.ytd-menu-renderer[button-renderer], #top-level-buttons-computed.ytd-menu-renderer:not(:empty)+#flexible-item-buttons.ytd-menu-renderer+#button.ytd-menu-renderer {
padding-right: 2px;
}

#return-youtube-dislike-bar {
background: #909090 !important;
}

#ryd-bar {
background: #909090 !important;
}

.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal {
color: #909090 !important;
}

.yt-spec-icon-badge-shape {
color: #606060 !important;
}

#expand-icon {
color: #909090 !important;
}

#icon.expand-icon.style-scope.ytd-info-row-renderer {
color: #909090 !important;
}

#label-icon.yt-dropdown-menu {
color: var(--yt-spec-text-secondary) !important;
}

#icon-label.yt-dropdown-menu {
color: var(--yt-spec-text-secondary) !important;
}

#call-to-action-icon {
color: #909090 !important;
}

#expand-arrow {
color: var(--yt-spec-text-secondary) !important;
}

#collapse-arrow {
color: var(--yt-spec-text-secondary) !important;
}

.style-scope.ytd-button-renderer.style-black {
color: #909090 !important;
}

ytd-download-button-renderer {
display: none !important;
}

div.ytp-autonav-toggle-button-container {
display: none !important;
}

ytd-horizontal-card-list-renderer.ytd-structured-description-content-renderer:not(:first-child), ytd-metadata-row-container-renderer.ytd-structured-description-content-renderer:not(:first-child), ytd-structured-description-content-renderer[inline-structured-description] ytd-horizontal-card-list-renderer.ytd-structured-description-content-renderer, ytd-structured-description-content-renderer[inline-structured-description] ytd-error-corrections-section-renderer.ytd-structured-description-content-renderer, ytd-structured-description-content-renderer[inline-structured-description] ytd-video-description-infocards-section-renderer.ytd-structured-description-content-renderer {
display: none !important;
}

button.ytp-button.ytp-jump-button.ytp-jump-button-enabled {
display: none !important;
}

.ytp-settings-menu .ytp-menuitem-icon {
display: none !important;
}

.ytp-settings-menu .ytp-menuitem-label {
padding-left: 20px !important;
}

.ytp-big-mode .ytp-settings-menu .ytp-menuitem-label {
padding-left: 30px !important;
}

#channel-container.ytd-c4-tabbed-header-renderer {
height: 100px !important;
}

#contentContainer.tp-yt-app-header-layout {
padding-top: 353px !important;
}

#channel-header-container.ytd-c4-tabbed-header-renderer {
padding-top: 0 !important;
}

ytd-c4-tabbed-header-renderer[use-modern-style] #channel-name.ytd-c4-tabbed-header-renderer {
margin-bottom: 0px !important;
}

ytd-c4-tabbed-header-renderer[use-modern-style] #avatar-editor.ytd-c4-tabbed-header-renderer {
--ytd-channel-avatar-editor-size: 80px !important;
}

#avatar.ytd-c4-tabbed-header-renderer {
width: 80px !important;
height: 80px !important;
margin: 0 24px 0 0;
flex: none;
border-radius: 50%;
background-color: transparent !important;
overflow: hidden;
}

#wrapper > .ytd-channel-tagline-renderer.style-scope,#videos-count {
display: none;
}

/* Font adjustements */
tp-yt-paper-tooltip {
font-size: 1.3rem !important;
}

tp-yt-paper-tooltip.style-scope.ytd-topbar-menu-button-renderer {
font-size: 1.3rem !important;
}

#footer.ytd-guide-renderer > #copyright {
font-size: 1.3rem !important;
}

yt-formatted-string.style-scope.yt-chip-cloud-chip-renderer {
font-size: 1.4rem !important;
font-weight: 400 !important;
line-height: 2.1rem !important;
letter-spacing: normal !important;
}

#text.complex-string.ytd-channel-name {
font-size: 1.3rem !important;
}

ytd-video-meta-block[rich-meta] #metadata-line.ytd-video-meta-block {
font-size: 1.3rem !important;
}

ytd-video-meta-block[rich-meta][mini-mode] #metadata-line.ytd-video-meta-block {
font-size: 1.3rem !important;
}

#metadata.ytd-channel-renderer {
font-size: 1.3rem !important;
}

#description.ytd-channel-renderer {
font-size: 1.3rem !important;
}

#description-text.ytd-video-renderer {
font-size: 1.3rem !important;
}

ytd-video-meta-block:not([rich-meta]) #metadata-line.ytd-video-meta-block {
font-size: 1.3rem !important;
}

#channel-name.ytd-video-renderer {
font-size: 1.3rem !important;
}

.metadata-snippet-container.ytd-video-renderer {
font-size: 1.3rem !important;
}

#channel-name.ytd-video-owner-renderer {
line-height: 1.6rem !important;
}

#owner-sub-count.ytd-video-owner-renderer {
font-size: 1.3rem !important;
}

span.date.style-scope.ytd-video-secondary-info-renderer {
font-size: 1.3rem !important;
}

#video-title.ytd-compact-video-renderer {
line-height: 16px !important;
}

#channel-name.ytd-video-meta-block {
font-size: 1.3rem !important;
}

ytd-video-meta-block:not([rich-meta])[inline-badges] #metadata-line.ytd-video-meta-block {
font-size: 1.3rem !important;
}

ytd-grid-video-renderer #video-title.yt-simple-endpoint.ytd-grid-video-renderer {
line-height: 1.7rem !important;
}

ytd-grid-video-renderer:not([rich-meta]) #metadata-line.ytd-grid-video-renderer {
font-size: 1.3rem !important;
}

#details-container.ytd-channel-about-metadata-renderer tr.ytd-channel-about-metadata-renderer {
font-size: 1.3rem !important;
}

#link-list-container.ytd-channel-about-metadata-renderer a.yt-simple-endpoint.ytd-channel-about-metadata-renderer {
font-size: 1.3rem !important;
}

ytd-pinned-comment-badge-renderer {
font-size: 1.3rem !important;
}

.published-time-text.ytd-comment-renderer {
font-size: 1.3rem !important;
}

.movie-metadata-list.ytd-movie-renderer li.ytd-movie-renderer {
font-size: 1.3rem !important;
}

#description-text.ytd-movie-renderer {
font-size: 1.3rem !important;
}

/* Subscribe button fix while logged in */
#buttons.ytd-c4-tabbed-header-renderer {
flex-direction: row-reverse !important;
}

yt-button-shape.style-scope.ytd-subscribe-button-renderer {
display: flex !important;
}

#subscribe-button ytd-subscribe-button-renderer button {
height: 37px !important;
letter-spacing: 0.5px !important;
border-radius: 2px !important;
text-transform: uppercase !important;
}

.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled {
color: #fff;
background: #c00 !important;
border-radius: 2px !important;
text-transform: uppercase !important;
letter-spacing: 0px !important;
}

button.yt-spec-button-shape-next.yt-spec-button-shape-next--tonal.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--size-s {
height: 25px !important;
letter-spacing: 0px !important;
border-radius: 2px !important;
text-transform: uppercase !important;
}

div#notification-preference-button.style-scope.ytd-subscribe-button-renderer > ytd-subscription-notification-toggle-button-renderer-next.style-scope.ytd-subscribe-button-renderer > yt-button-shape > .yt-spec-button-shape-next--size-m {
background-color: transparent !important;
border-radius: 16px !important;
padding-left: 14px !important;
padding-right: 2px !important;
margin-left: 4px !important;
}

div#notification-preference-button.style-scope.ytd-subscribe-button-renderer > ytd-subscription-notification-toggle-button-renderer-next.style-scope.ytd-subscribe-button-renderer > yt-button-shape > .yt-spec-button-shape-next--size-m > div.cbox.yt-spec-button-shape-next--button-text-content {
display: none !important;
}

div#notification-preference-button.style-scope.ytd-subscribe-button-renderer > ytd-subscription-notification-toggle-button-renderer-next.style-scope.ytd-subscribe-button-renderer > yt-button-shape > .yt-spec-button-shape-next--size-m > div.yt-spec-button-shape-next__secondary-icon {
display: none !important;
}

yt-smartimation.ytd-subscribe-button-renderer {
display: flex !important;
}

if brightVerify {
yt-icon.style-scope.ytd-badge-supported-renderer {
color: #909090 !important;
}
}
}

§
작성: 2023-08-03
수정: 2023-08-03

First, try this script. https://greasyfork.org/en/scripts/453802-youtube-non-rounded-design


If you are still hoping more "going back",
then send a message to this guy to ask for what you want.

https://greasyfork.org/en/users/933798-xx-legendcraftd-xx

Also, AdashimaaTube could be a choice for you.

https://github.com/sapondanaisriwan/AdashimaaTube

댓글 남기기

댓글을 남기려면 로그인하세요.