YouTube Mobile Non-Rounded Design (2021 Layout)

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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;
        }
    `);
})();