Skip to content

Hide YouTube Recommendations by lmb

Details

Authorlmb

LicenseMIT License

Categoryyoutube

Created

Updated

Size1.9 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Hides the right-hand recommendations when watching a video.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Hide YouTube Recommendations
@version      20241126.19.30
@namespace    https://userstyles.world/user/lmb
@description  Hides the right-hand recommendations when watching a video.
@author       lmb
@license      MIT License
==/UserStyle== */

@-moz-document domain("youtube.com") {

#columns.ytd-watch-flexy {
    justify-content: center;
}

#primary.ytd-watch-flexy {
    padding-right: 0;
    margin-right: var(--ytd-margin-6x);
}

#secondary.ytd-watch-flexy {
    display: none;
}

ytd-watch-flexy[flexy]:not([full-bleed-player]) #player-container-inner.ytd-watch-flexy {
    padding-top: 0;
}

ytd-watch-flexy[flexy]:not([full-bleed-player]) #player-container.ytd-watch-flexy {
    position: relative;
    width: max-content;
    margin: auto;
}

ytd-watch-flexy[flexy]:not([full-bleed-player]) .html5-video-player .video-click-tracking, .html5-video-player .video-stream {
    position: relative;
}


ytd-topbar-logo-renderer yt-icon.ytd-logo#logo-icon svg > g:nth-of-type(1) path[fill="white"] {
    fill: #FF0000;
}
ytd-topbar-logo-renderer yt-icon.ytd-logo#logo-icon svg > g:nth-of-type(1) path:not([fill="white"]) {
    fill: #ff000024;
}

ytd-masthead ytd-topbar-logo-renderer #logo-icon :is(#youtube-paths, #youtube-paths_yt21, g:nth-of-type(2)) {
    opacity: 0;
}

ytd-masthead #country-code.ytd-topbar-logo-renderer {
    display: none;
}

ytd-masthead #logo.ytd-topbar-logo-renderer {
    width: 60px;
    overflow: hidden;
}

ytd-masthead #logo.ytd-topbar-logo-renderer:active {
    opacity: .5;
}


.html5-video-player:not(.ytp-color-party) .ytp-play-progress {
    background: var(--yt-spec-static-brand-red,#f03) !important;
}

.ytp-color-party .ytp-play-progress {
    background-image: none !important;
}


.iv-branding {
    display: none;
}


ytd-player .ytp-caption-window-container .captions-text {
    transition: none !important;
}

}

Reviews

No reviews yet.