Skip to content

Unrounded YouTube by lightbeam

Details

Authorlightbeam

LicenseNo License

Categoryyoutube

Created

Updated

Size4.8 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Undo YouTube's new rounded corners. Some people might not have these changes yet, and in that case, this script won't do anything.

Notes

1.1.0 - October 26, 2022

YouTube made some new changes that this script did not fix. Now they are fixed.
Added an option to unround profile pictures

1.0.0 - July 29, 2022

Initial Release

Source code

/* ==UserStyle==
@name           Unrounded YouTube
@namespace      youtube
@version        1.1.0
@description    Undo YouTube's new rounded corners
@author         lightbeam
@preprocessor   stylus
@var checkbox pfp "Unround pfps" 0
==/UserStyle== */

@-moz-document domain("youtube.com") {
ytd-multi-page-menu-renderer[sheets-refresh] {
  border-radius: 0 !important;
}
ytd-menu-popup-renderer[sheets-refresh] {
  border-radius: 0 !important;
}
ytd-thumbnail[size="large"] a.ytd-thumbnail, ytd-thumbnail[size="large"]::before {
  border-radius: 0 !important;
}
ytd-thumbnail[size="medium"] a.ytd-thumbnail, ytd-thumbnail[size="medium"]::before {
  border-radius: 0 !important;
}
tp-yt-paper-dialog[modern] {
  border-radius: 0 !important;
}
yt-bubble-hint-renderer[rounded-container] {
  border-radius: 0 !important;
}
ytd-playlist-thumbnail[size="medium"] a.ytd-playlist-thumbnail, ytd-playlist-thumbnail[size="medium"]::before {
  border-radius: 0 !important;
}
ytd-playlist-thumbnail[size="large"] a.ytd-playlist-thumbnail, ytd-playlist-thumbnail[size="large"]::before {
  border-radius: 0 !important;
}
ytd-playlist-panel-renderer[modern-panels]:not([within-miniplayer]) #container.ytd-playlist-panel-renderer {
  border-radius: 0 !important;
}
ytd-miniplayer[rounded-container] #player-container.ytd-miniplayer, ytd-miniplayer[rounded-container] #video-container.ytd-miniplayer .video.ytd-miniplayer, ytd-miniplayer[rounded-container] #card.ytd-miniplayer, ytd-miniplayer[rounded-container] {
  border-radius: 0 !important;
}
.ytp-settings-menu.ytp-rounded-menu, .ytp-screen-mode-menu.ytp-rounded-menu {
  border-radius: 2px !important;
}
/* searchbar */
#container.ytd-searchbox {
  background-color: var(--ytd-searchbox-background) !important;
  border: 1px solid var(--ytd-searchbox-legacy-border-color) !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;
}
ytd-searchbox[desktop-searchbar-style="rounded_corner_borders_light_btn"] #search-icon-legacy.ytd-searchbox, ytd-searchbox[desktop-searchbar-style="rounded_corner_autofocus"] #search-icon-legacy.ytd-searchbox {
  border-radius: 0;
}
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: 40px;
}
#search-icon-legacy.ytd-searchbox {
  display: block !important;
}
.sbsb_a {
  border-radius: 0 !important;
  margin-top: -4px;
}
/* ads */
ytd-image-companion-renderer[rounded] img.ytd-image-companion-renderer {
  border-radius: 0 !important; 
}
/* sub button */
.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--filled {
  color: #fff;
  background: #c00;
  border-radius: 0 !important;
}
.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal {
  background: var(--yt-spec-badge-chip-background);
  border-radius: 0 !important;
}
/* end screens */
.ytp-ce-video.ytp-ce-large-round, .ytp-ce-playlist.ytp-ce-large-round, .ytp-ce-large-round .ytp-ce-expanding-overlay-background {
  border-radius: 0;
}
/* blue buttons */
.yt-spec-button-shape-next--size-m {
  border-radius: 0;
}
/* description thing */
ytd-watch-metadata[modern-metapanel] #description.ytd-watch-metadata {
  border-radius: 0;
}
/* sidebar */
ytd-guide-entry-renderer[guide-refresh] tp-yt-paper-item.ytd-guide-entry-renderer {
  --paper-item-focused-before-border-radius: 0;
}
ytd-guide-entry-renderer[guide-refresh] {
  border-radius: 0 !important;
}
.style-scope.ytd-guide-entry-renderer:hover {
  border-radius: 0 !important;
}
/* playlist */
.immersive-header-container.ytd-playlist-header-renderer {
  border-radius: 0;
}
if pfp {
    yt-img-shadow.ytd-topbar-menu-button-renderer, yt-img-shadow.ytd-guide-entry-renderer, #avatar, #author-thumbnail, 
    #author-thumbnail.ytd-comment-renderer yt-img-shadow.ytd-comment-renderer, 
    ytd-comment-replies-renderer #creator-thumbnail.ytd-comment-replies-renderer yt-img-shadow.ytd-comment-replies-renderer, #hearted-thumbnail.ytd-creator-heart-renderer, 
    yt-img-shadow.ytd-channel-renderer, yt-img-shadow.ytd-video-renderer, yt-img-shadow.ytd-channel-avatar-editor, 
    #author-thumbnail.ytd-backstage-post-renderer yt-img-shadow.ytd-backstage-post-renderer, #thumbnail.ytd-profile-column-user-info-renderer,
    yt-img-shadow.ytd-account-item-renderer {
        border-radius: 0 !important;
    }
}
}

Reviews

No reviews yet.