Description:
When Shorts are hidden, YouTube sometimes still renders the Shorts section (ytd-rich-section-renderer) even though all items inside are hidden (hidden attribute).
This results in an empty Shorts block taking space on the homepage.
A working CSS fix:
ytd-rich-section-renderer:not(:has(ytd-rich-shelf-renderer:not([hidden]))) {
display: none !important;
}
This hides the entire Shorts section when all ytd-rich-shelf-renderer elements are hidden.
Description:
When Shorts are hidden, YouTube sometimes still renders the Shorts section (ytd-rich-section-renderer) even though all items inside are hidden (hidden attribute).
This results in an empty Shorts block taking space on the homepage.
A working CSS fix:
This hides the entire Shorts section when all ytd-rich-shelf-renderer elements are hidden.