中文介绍
YouTube Layout Plus 是一个专门为桌面端 YouTube 设计的油猴脚本,目标很明确:减少无关干扰、提高首页信息密度、优化播放页的观看体验。
这个脚本目前主要处理两类页面:
1. YouTube 首页
默认将左侧导航切换为折叠状态,保留左上角三条杠按钮的正常展开/收起能力。
同时提升首页主内容区的信息密度,将推荐视频调整为每行 5 个,并隐藏 Shorts 模块,减少对正常长视频浏览的干扰。
2. YouTube 播放页
自动隐藏右侧推荐视频侧栏,并将主播放器区域和正文内容居中显示。
这样可以让播放页的视觉重心更集中,减少“边看边被推荐流打断”的问题,尤其适合专注观看、学习、查资料和长时间播放。
主要功能
- 首页默认折叠左侧大导航
- 保留三条杠按钮,支持手动展开和再次折叠
- 首页推荐视频一行显示 5 个,提高浏览效率
- 隐藏 Shorts 区域,减少短视频干扰
- 播放页隐藏右侧推荐栏
- 播放页主内容区自动居中
- 支持 YouTube 单页应用路由切换,页面跳转后自动重新应用布局
适合谁用
- 不喜欢 YouTube 首页太松散的人
- 想一屏看到更多视频的人
- 经常用 YouTube 看教程、访谈、长视频的人
- 不想在播放页被右侧推荐流打断注意力的人
- 想弱化 Shorts 干扰、把 YouTube 用回“视频网站”而不是“短视频平台”的人
设计原则
这个脚本尽量不去重写 YouTube 的交互逻辑,而是只调整布局和可见性。
例如首页虽然默认折叠导航,但不会破坏原生的三条杠展开功能;播放页隐藏推荐栏后,也会同步调整主内容宽度和居中方式,避免页面出现大面积空白或错位。
已实现的页面行为
- 刷新首页时,左侧导航默认为折叠状态
- 用户点击三条杠后,可以正常展开菜单,不会被脚本强制立刻折回
- 返回首页或重新进入首页时,会再次恢复默认折叠状态
- 在播放页中,推荐侧栏会自动隐藏,主区域自动居中
注意事项
- 目前主要针对桌面端 YouTube 页面设计
- YouTube 会不定期修改 DOM 结构,未来如果官方改版,脚本可能需要跟进更新
- 某些实验性页面、地区差异 UI、A/B Test 布局可能会影响效果
- 如果你同时安装了其他修改 YouTube 布局的脚本或扩展,可能会发生冲突
为什么做这个脚本
YouTube 默认布局在桌面端越来越偏“推荐流驱动”,首页信息密度偏低,播放页右侧推荐也容易分散注意力。
这个脚本的目的不是做一套花哨改版,而是做一组非常实用的布局修正,让 YouTube 更适合高频、高效率地浏览和观看。
English Description
YouTube Layout Plus is a userscript for desktop YouTube focused on one goal: reducing distraction and improving layout efficiency.
The script currently improves two main areas:
1. YouTube Home Page
It collapses the left navigation by default while keeping the original hamburger button fully functional.
It also increases content density by displaying 5 videos per row and hides Shorts sections to reduce interference from short-form content.
2. YouTube Watch Page
It hides the recommendation sidebar on the right and recenters the main player/content area.
This creates a cleaner and more focused viewing experience, especially for long-form videos, tutorials, interviews, and research-heavy browsing.
Main Features
- Collapse the large left guide by default on the homepage
- Keep the hamburger menu working normally for manual expand/collapse
- Show 5 videos per row on the homepage
- Hide Shorts sections on the homepage
- Hide the recommendation sidebar on watch pages
- Center the main content area on watch pages
- Re-apply layout automatically during YouTube SPA navigation
Who This Is For
- Users who want a denser and cleaner YouTube homepage
- Users who prefer seeing more videos per screen
- People who use YouTube for learning, long-form watching, and focused browsing
- Users who dislike the distraction of the right-hand recommendation column
- Anyone who wants YouTube to feel less like a short-video feed and more like a video platform again
Design Philosophy
This script tries to modify layout without breaking core YouTube interactions.
For example, the homepage guide is collapsed by default, but the native hamburger button still works as expected.
On watch pages, the sidebar is hidden and the primary content is recentered to avoid awkward empty space.
Current Behavior
- The homepage loads with the guide collapsed by default
- Clicking the hamburger button expands the guide normally
- The script does not immediately force the guide closed again after user interaction
- Revisiting the homepage restores the default collapsed state
- Watch pages automatically hide the recommendation panel and center the content
Notes
- Designed primarily for desktop YouTube
- YouTube changes its DOM structure regularly, so future updates may be needed
- Experimental layouts, regional UI differences, or A/B tests may affect behavior
- Conflicts may occur if you use other YouTube layout-modifying extensions or userscripts
Why This Script Exists
Desktop YouTube has gradually become more recommendation-driven, with lower information density on the homepage and more distraction on watch pages.
This script is not meant to redesign YouTube completely. It is meant to make a few practical layout changes that improve efficiency and focus for everyday use.