YouTube 4 Videos Per Row Fix|Size fix.

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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