您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Youtube 3 Grid Fix
当前为
// ==UserScript== // @name YouTube 3 Video Grid Fix // @namespace http://tampermonkey.net/ // @version 1.1.1 // @description Youtube 3 Grid Fix // @author Horizon // @match https://www.youtube.com/* // @exclude https://www.youtube.com/watch* // @grant GM_addStyle // @run-at document-start // @license MIT // ==/UserScript== (function() { 'use strict'; /* simple but works */ const p = location.pathname; if (p.startsWith('/watch') || p.startsWith('/embed') || p.startsWith('/@') || p.startsWith('/shorts')) { return; } GM_addStyle(` ytd-rich-grid-renderer { --ytd-rich-grid-items-per-row: 5 !important; } ytd-rich-grid-renderer > #contents > ytd-rich-grid-row, ytd-item-section-renderer ytd-rich-grid-row { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: var(--ytd-rich-grid-gutter-margin, 16px) !important; width: 100% !important; } ytd-thumbnail { max-height: none !important; height: auto !important; width: 100% !important; } ytd-thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover !important; } `); })();