11// jshint -W014, -W086
22
3- var SelSubPassiveBtn = "#subscribe-button yt-button-shape>button" ;
4- var SelSubContainer = "yt-smartimation.ytd-subscribe-button-renderer" ; // Alt: #subscribe-button yt-smartimation
3+ var SelSubPassiveBtn = "#subscribe-button-shape>button" ; // Old: #subscribe-button yt-button-shape>button
4+ var SelSubContainer = "yt-smartimation.ytd-subscribe-button-renderer>.smartimation__content>__slot-el " ; // [OLD] Alt: #subscribe-button yt-smartimation
55var SelMeta = "#meta.ytd-c4-tabbed-header-renderer" ;
66var SelMetaSpan = SelMeta + ">span.meta-item" ;
77
@@ -10,6 +10,8 @@ document.head.appendChild(DomUtils.BuildElement("style", {
1010 "innerText" :
1111 (
1212 /* General */
13+ // Remove "You"
14+ "ytd-guide-collapsible-section-entry-renderer>#header{display:none;}" +
1315 // Old search box styles
1416 "#container.ytd-searchbox{" + ( SeriStyleSettings . General . NormalizeSearchBar . Value ? "margin-left:0px;" : "" ) + "position:relative;align-items:center;border:1px solid var(--ytd-searchbox-legacy-border-color);border-right:none;border-radius:2px 0 0 2px;box-shadow:inset 0 1px 2px var(--ytd-searchbox-legacy-border-shadow-color);padding:2px 6px;flex:1;flex-basis:1e-9px;display:flex;flex-direction:row;}" +
1517 // Prepare voice search button
@@ -31,24 +33,19 @@ document.head.appendChild(DomUtils.BuildElement("style", {
3133 "#sponsor-button yt-button-shape>button{" + ( SeriStyleSettings . VideoPage . HideJoinButton . Value ? "display:none;" : "text-transform:uppercase;background:none;border:1px solid #3EA6FF;color:#3EA6FF;border-radius:3px;" ) + "}" +
3234 "#analytics-button yt-button-shape>button{text-transform:uppercase;background:#065FD4;color:#FFF;border-radius:3px;}"
3335 : "" ) +
34- // Old subscribe button color & form
36+ // Fix the Unsubscribe button
37+ "ytd-subscribe-button-renderer{transition:none;width:unset;}" +
3538 SelSubPassiveBtn + "{border-radius:3px;text-transform:uppercase;}" +
3639 SelSubPassiveBtn + ".yt-spec-button-shape-next--filled{background:#C00;color:#FFF;}" + // "SUBSCRIBE" button, red color
37- ( SeriStyleSettings . Advanced . LegacySubButton . Value
38- ? SelSubPassiveBtn + ".yt-spec-button-shape-next--tonal{background:#2C2C2C;color:#A8A8A8;}"
39- : "#subscribe-button>ytd-subscribe-button-renderer>yt-smartimation>yt-button-shape>button{background:#2C2C2C;color:#A8A8A8;}"
40- ) +
41- // Fix sub button
42- ( ! SeriStyleSettings . Advanced . LegacySubButton . Value ?
43- "#subscribe-button yt-button-shape[hidden]{display:block;}" +
44- "#notification-preference-button div.cbox{display:none;}" + // widest: "#notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.cbox.yt-spec-button-shape-next--button-text-content"
45- "#notification-preference-button div.yt-spec-button-shape-next__secondary-icon{display:none;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.yt-spec-button-shape-next__secondary-icon
46- "#notification-preference-button div.yt-spec-button-shape-next__icon{margin-right:0px;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.yt-spec-button-shape-next__icon
47- "#notification-preference-button button{background:none;padding-right:0px;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button
48- "#notification-preference-button div.yt-spec-button-shape-next__button-text-content{display:none;}"
49- : "" ) +
40+ SelSubPassiveBtn + "{background:#2C2C2C;color:#A8A8A8;}" +
41+ "#subscribe-button yt-button-shape[invisible]{display:block;position:unset;pointer-events:unset;visibility:unset;}" +
42+ "#notification-preference-button div.cbox{display:none;}" + // widest: "#notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.cbox.yt-spec-button-shape-next--button-text-content"
43+ "#notification-preference-button div.yt-spec-button-shape-next__secondary-icon{display:none;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.yt-spec-button-shape-next__secondary-icon
44+ "#notification-preference-button div.yt-spec-button-shape-next__icon{margin-right:0px;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button > div.yt-spec-button-shape-next__icon
45+ "#notification-preference-button button{background:none;padding-right:0px;}" + // widest: #notification-preference-button > ytd-subscription-notification-toggle-button-renderer-next > yt-button-shape > button
46+ "#notification-preference-button div.yt-spec-button-shape-next__button-text-content{display:none;}" +
5047 // Fix notification bell
51- ( ! SeriStyleSettings . Advanced . LegacyImation . Value ?
48+ ( ! SeriStyleSettings . Advanced . LegacyImation . Value ? // TODO: Pending removal
5249 SelSubContainer + "{display:flex;flex-direction:row;}"
5350 : "" ) +
5451 // Hide channel handles
@@ -103,7 +100,7 @@ document.head.appendChild(DomUtils.BuildElement("style", {
103100 "}" +
104101
105102 /* Playlists */
106- ( SeriStyleSettings . Playlist . TrueOld . Value ?
103+ ( SeriStyleSettings . Playlist . TrueOld . Value ? // TODO: Move duplicates outside of this scope
107104 // Restore position & dimensions, fix colors
108105 "ytd-browse.ytd-page-manager{padding-top:0px;}" +
109106 "ytd-playlist-header-renderer{background:rgba(255,255,255,0.05);margin-left:0px;height:calc(100vh - var(--ytd-toolbar-height));}" + // In the past: var(--yt-spec-general-background-a)
@@ -142,14 +139,35 @@ document.head.appendChild(DomUtils.BuildElement("style", {
142139 ) +
143140
144141 /* Channel Page */
145- ( SeriStyleSettings . ChannelPage . TrueOld . Value ?
142+ ( SeriStyleSettings . ChannelPage . TrueOld . Value ? // TODO: Relocate this... maybe?
143+ // Metadata: Only show subscriber count
146144 SelMetaSpan + "{margin:0;}" +
147145 SelMetaSpan + ">#channel-handle{display:none;}" +
148146 SelMetaSpan + ">#videos-count{display:none;}" +
147+ SelMeta + " span.delimiter{display:none;}" +
149148 SelMeta + ">#channel-tagline{display:none;}" +
149+ SelMeta + ">#channel-header-links{display:none;}" +
150+ // Fix channel name size
151+ SelMeta + " #text.ytd-channel-name{font-size:24px;font-weight:400;}" +
152+ SelMeta + ">#channel-name{font-size:unset;line-height:unset;}" +
153+ // Part of subscribe button fix
154+ SelMeta + "{width:max-content;}" +
155+ // Fix misaligned badge
156+ SelMeta + ">#channel-name{display:flex;align-items:center;font-size:unset;line-height:unset;}" +
157+ SelMeta + ">#channel-name>ytd-badge-supported-renderer>div>yt-icon{margin-bottom:0px;}" +
158+ SelMeta + ">#channel-name>ytd-badge-supported-renderer{margin-left:8px;}" +
159+ // Header realignment
150160 "#channel-header-container.ytd-c4-tabbed-header-renderer{padding-top:0px;align-items:center;}" +
161+ "#inner-header-container.ytd-c4-tabbed-header-renderer{flex-direction:row;margin-top:0px;}" +
162+ // Avatar style fixes
151163 "#channel-header-container.ytd-c4-tabbed-header-renderer>#avatar{width:80px;height:80px;margin-bottom:0px;}" +
152- "#inner-header-container.ytd-c4-tabbed-header-renderer{margin-top:0px;}"
164+ // Fixing tab styles:
165+ ".yt-tab-shape-wiz__tab{padding:0 32px;font-family:Roboto,Noto,sans-serif;font-size:14px;font-weight:500;letter-spacing:0.007px;text-size-adjust:100%;text-transform:uppercase;white-space:nowrap;}" +
166+ "yt-tab-shape.yt-tab-shape-wiz{margin-right:0px;}" +
167+ ".yt-tab-group-shape-wiz__slider{display:none;}" +
168+ ".yt-tab-shape-wiz__tab-bar--tab-bar-selected{height:2px;background:#AAA;}" +
169+ //
170+ ""
153171 : "" ) +
154172 ( SeriStyleSettings . General . OldColors . Value ?
155173 "#channel-header.ytd-c4-tabbed-header-renderer, #tabs-inner-container.ytd-c4-tabbed-header-renderer{background:#181818;}" +
0 commit comments