Created
August 1, 2024 02:19
-
-
Save Yanrishatum/dae46e88f05fbc54193d2d7b90652685 to your computer and use it in GitHub Desktop.
Fix YT shit-tier subscriptions page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name Fix YT shit UX (again) | |
@namespace github.com/openstyles/stylus | |
@version 1.1.0 | |
@description A new userstyle | |
@author Me | |
@var number ipr "Items per row" 6 | |
@var number avatarSize "Avatar size" [30, "px"] | |
@var select hideButtons "Hide video buttons" { | |
yes: "none", | |
no: "initial" | |
} | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://www.youtube.com/feed/subscriptions") { | |
#contents.ytd-rich-grid-renderer { | |
display: grid; | |
grid-template-columns: repeat(var(--ipr), minmax(0, 1fr)); | |
gap: 1rem; | |
max-width: 1400px; | |
} | |
ytd-rich-item-renderer[rendered-from-rich-grid] { | |
--ytd-rich-grid-items-per-row: var(--irp) !important; | |
--ytd-rich-grid-posts-per-row: var(--irp) !important; | |
} | |
ytd-rich-item-renderer[rendered-from-rich-grid][is-in-first-column] { | |
margin-left: unset; | |
} | |
#contents.ytd-rich-grid-renderer>ytd-rich-section-renderer { | |
grid-column-start: span var(--ipr); | |
} | |
#contents.ytd-rich-grid-renderer> ytd-rich-grid-row, | |
#contents.ytd-rich-grid-renderer> ytd-rich-grid-row>#contents { | |
display: contents; | |
} | |
#avatar-container.ytd-rich-grid-media { | |
margin-right: 6px; | |
} | |
#video-title.ytd-rich-grid-media { | |
-webkit-line-clamp: 1; | |
} | |
#meta.ytd-rich-grid-media { | |
padding-right: 0; | |
display: grid; | |
flex-direction: column; | |
position: relative; | |
} | |
#meta.ytd-rich-grid-media h3 { | |
margin-bottom: 0; | |
} | |
#meta.ytd-rich-grid-media #buttons { | |
display: var(--hideButtons); | |
} | |
#meta ytd-badge-supported-renderer.video-badge { | |
position: absolute; | |
right: 8px; | |
bottom: 0; | |
} | |
#avatar-link.ytd-rich-grid-media { | |
margin-top: 4px; | |
margin-right: 4px; | |
height: var(--avatarSize); | |
--yt-img-max-width: var(--avatarSize); | |
--yt-img-max-height: var(--avatarSize); | |
} | |
#avatar-link.ytd-rich-grid-media>yt-img-shadow { | |
width: var(--avatarSize); | |
height: var(--avatarSize); | |
} | |
h3.ytd-rich-grid-media { | |
margin-top: 4px; | |
flex-grow: 1; | |
} | |
ytd-rich-item-renderer { | |
margin-left: 0; | |
margin-right: 0; | |
width: auto; | |
flex-grow: 1; | |
margin-bottom: 10px; | |
} | |
#details yt-formatted-string#video-title { | |
font-size: 1.4rem; | |
line-height: 1.7rem; | |
} | |
ytd-video-meta-block[rich-meta] #byline-container.ytd-video-meta-block, | |
ytd-video-meta-block[rich-meta] #metadata-line.ytd-video-meta-block, | |
#metadata.ytd-video-meta-block>div { | |
font-size: 1.2rem; | |
line-height: 1.6rem; | |
flex-wrap: nowrap !important; | |
white-space: nowrap !important; | |
} | |
ytd-thumbnail[size=large] a.ytd-thumbnail, ytd-thumbnail[size=large]:before { | |
border-radius: 2px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment