您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adjust the number of video columns on YouTube
当前为
// ==UserScript== // @name YouTube Grid Column Customizer // @namespace https://violentmonkey.github.io/ // @version 0.2 // @description Adjust the number of video columns on YouTube // @author Bui Quoc Dung // @match https://www.youtube.com/* // @grant GM_addStyle // ==/UserScript== (function () { "use strict"; GM_addStyle(` /* Mặc định: 3 cột */ ytd-rich-grid-renderer { --ytd-rich-grid-items-per-row: 3 !important; } /* Desktop lớn */ @media (min-width: 1024px) { ytd-rich-grid-renderer { --ytd-rich-grid-items-per-row: 4 !important; } } /* Tablet nhỏ hơn */ @media (max-width: 800px) { ytd-rich-grid-renderer { --ytd-rich-grid-items-per-row: 2 !important; } } `); })();