Youtube Small Thumbnails

small thumbnails for youtube

当前为 2023-07-01 提交的版本,查看 最新版本

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

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

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

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

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

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Youtube Small Thumbnails
// @match       https://www.youtube.com/*
// @description small thumbnails for youtube
// @version     1.0
// @author      hdyzen
// @license     MIT
// @grant       GM_addStle
// @namespace https://greasyfork.org/users/821661
// ==/UserScript==

(function () {
    "use strict";
    GM_addStyle(`
        ytd-rich-grid-renderer {
            --ytd-rich-grid-items-per-row: 6 !important;
            --ytd-rich-grid-posts-per-row: 6 !important;
            --ytd-rich-grid-slim-items-per-row: 6 !important;
        }

        ytd-rich-grid-renderer > #contents > ytd-rich-grid-row,
        ytd-rich-grid-renderer > #contents > ytd-rich-grid-row > #contents {
            display: contents !important;
        }

        ytd-rich-item-renderer {
            min-width: 210px !important;
        }

        #avatar-link {
            display: none !important;
        }

        #video-title {
            font-size: 1.4rem !important;
        }

        #channel-name.ytd-video-meta-block {
            font-size: 1.3rem !important;
        }

        #metadata-line {
            font-size: 1.3rem !important;
        }

        .ytd-video-renderer:not([use-prominent-thumbs]) ytd-thumbnail.ytd-video-renderer {
            flex: none !important;
            width: 246px !important;
            height: 138px !important;
        }

        ytd-playlist-renderer[use-prominent-thumbs] ytd-playlist-thumbnail.ytd-playlist-renderer {
            max-width: 246px !important;
            min-width: 240px !important;
        }

        ytd-radio-renderer[use-prominent-thumbs] ytd-thumbnail.ytd-radio-renderer {
            max-width: 246p !important;
            min-width: 240px !important;
        }
    `);
})();