YouTube Mobile Non-Rounded Design (2021 Layout)

Disables YouTube's new rounded corners on mobile, reverting to the 2021 layout.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         YouTube Mobile Non-Rounded Design (2021 Layout)
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Disables YouTube's new rounded corners on mobile, reverting to the 2021 layout.
// @author       You
// @match        https://m.youtube.com/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
        /* Remove rounded corners from video thumbnails */
        ytd-thumbnail, img {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from video cards */
        ytd-compact-video-renderer, ytd-video-renderer, ytd-grid-video-renderer, ytd-rich-grid-media, ytd-rich-item-renderer, ytd-item-section-renderer {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from buttons and other UI elements */
        button, paper-button, yt-button-shape, yt-touch-feedback-shape, paper-icon-button, yt-icon-button {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from dialogs and menus */
        paper-dialog, paper-menu-button, paper-listbox, paper-item {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from input fields and search bars */
        input, textarea, ytd-searchbox {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from bottom navigation */
        ytd-mini-guide-renderer, ytd-app-bottom-nav-bar-renderer {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from comments and comment sections */
        ytd-comment-renderer, ytd-comments {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from channel avatars */
        yt-img-shadow {
            border-radius: 0 !important;
        }

        /* Remove rounded corners from other general elements */
        .style-scope, .yt-spec-touch-feedback-shape__fill {
            border-radius: 0 !important;
        }
    `);
})();