YouTube 4 Videos Per Row Fix|Size fix.

Choose 3/4/5 videos per row via menu.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

作者
Ampedeath
日安装量
0
总安装量
5
评分
0 0 0
版本
1.1
创建于
2025-11-22
更新于
2025-11-22
大小
1.2 KB
许可证
MIT
适用于

YouTube Grid Fix — Choose 3 / 4 / 5 Videos per Row

A clean and lightweight Tampermonkey userscript that restores YouTube grid layout.

Choose how many videos appear per row: 3, 4, or 5 - directly from the Tampermonkey menu.

Perfect for users who want a cleaner layout, better density, or just want YouTube to behave as it used to.

Features

  • Selectable grid size: 3, 4, or 5 videos per row

  • Simple Tampermonkey menu controls - no code editing

  • Automatic re-apply after navigation (SPA-friendly, survives YouTube reloads)

  • Settings persist thanks to Tampermonkey storage

  • Lightweight, zero overhead, stable

  • Compatible with all YouTube pages

How to Change Videos per Row

After installing the script, open the Tampermonkey menu. You’ll see three options:

  • 3 videos per row

  • 4 videos per row

  • 5 videos per row

Click your desired configuration, YouTube will updates instantly.

Steps

  1. First click on Extensions button (Red arrow)
  2. Then click on Tampermonkey (Orange arrow)

image

  1. In the menu that opens, select the option you need.

image

How It Works

The script modifies YouTube’s internal CSS variable: --ytd-rich-grid-items-per-row A MutationObserver ensures the layout stays correct even as YouTube reloads content dynamically.

Your choice (3/4/5) is saved via Tampermonkey (GM_setValue()).

Everything runs quietly in the background.

Author

Ampedeath