Youtube Small Thumbnails

small thumbnails for youtube

// ==UserScript==
// @name        Youtube Small Thumbnails
// @namespace   https://greasyfork.org/users/821661
// @match       https://www.youtube.com/*
// @description small thumbnails for youtube
// @version     1.2
// @author      hdyzen
// @license     MIT
// @grant       GM_addStyle
// ==/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: 246px !important;
            min-width: 240px !important;
        }
        ytd-thumbnail.ytd-radio-renderer, ytd-playlist-thumbnail.ytd-radio-renderer {
		    max-width: 246px !important;
		    min-width: 240px !important;
	    }
    `);
})();