Youtube No rounded edges at all

Revert YouTube’s rounded design to square/flat layout everywhere possible. Compatible with Polymer Fixes.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Youtube No rounded edges at all 
// @namespace    https://github.com/
// @version      1.0
// @license MIT
// @description  Revert YouTube’s rounded design to square/flat layout everywhere possible. Compatible with Polymer Fixes.
// @match        https://www.youtube.com/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function() {
    "use strict";

    const css = `
        /* Remove rounded corners globally */
        * {
            border-radius: 0px !important;
        }

        /* Remove box shadows from cards and modals */
        ytd-rich-grid-media, ytd-compact-video-renderer, ytd-video-renderer,
        ytd-channel-renderer, ytd-grid-video-renderer, ytd-rich-shelf-renderer,
        ytd-rich-item-renderer, paper-button, yt-img-shadow, yt-formatted-string,
        yt-live-chat-renderer, yt-live-chat-text-message-renderer,
        ytd-playlist-video-renderer, ytd-merch-shelf-renderer {
            box-shadow: none !important;
        }

        /* Remove rounded edges from input/search fields */
        input, textarea, yt-formatted-string {
            border-radius: 0px !important;
        }

        /* Flatten buttons */
        paper-button, tp-yt-paper-icon-button, tp-yt-paper-icon-button-light {
            border-radius: 0px !important;
            box-shadow: none !important;
        }

        /* Flatten thumbnails */
        ytd-thumbnail img, yt-img-shadow img {
            border-radius: 0px !important;
        }

        /* Flatten live chat bubbles */
        yt-live-chat-text-message-renderer {
            border-radius: 0px !important;
        }

        /* Flatten modals/popups */
        ytd-popup-container, yt-dialog-renderer, tp-yt-paper-dialog {
            border-radius: 0px !important;
            box-shadow: none !important;
        }
    `;

    const style = document.createElement('style');
    style.textContent = css;
    document.documentElement.appendChild(style);
})();