max / 修改YouTube首页布局

Install steps: Install a userscript manager, select Install, then open a website matched by the script.

사용자 스크립트 초보자 하우투 Chrome Edge Firefox

게시됨:

버전: 1.6.1+e122ca7 업데이트됨

요약: 修改YouTube首页每行推荐视频数量

라이센스: MIT

안티피처: 불특정

Source and freshness

The following figures come from the original source and are separate from activity on this site.

Original script: 修改YouTube首页布局

Source version: 1.6

Last source check:

Last successful check:

Source daily installs
0
Source total installs
0
OpenUserJS install requests
0

Requests received by this site are not proof that a user completed installation.

Clicking Install records a request on this site; it does not confirm installation. Not working after install? View troubleshooting and issues

修改YouTube首页每行推荐视频数量,默认为5个,可在插件栏菜单中修改
也可使用广告插件css注入 .style-scope.ytd-two-column-browse-results-renderer:style(--ytd-rich-grid-items-per-row: 5 !important) (无需安装此脚本)
其中的数字5即每行显示视频数量,修改它后油管会自适应大小,不推荐改的太大,4到6为最佳
1.1关于修改布局后会有空白的问题,可以通过屏蔽Shorts来解决(ytd-rich-section-renderer.style-scope.ytd-rich-grid-renderer),考虑到Shorts可能会有人用,所以加个开关,可自行开启,默认关闭
1.3以支持横屏竖屏显示不同的视频数量,需手动开启
1.4修复部分情况脚本不加载的问题(大概也许可能......),昨天通过限制网速复现了一次脚本不加载,但今天无论是限制网络还是cpu都没法再复现⊙﹏⊙,今天看到了油猴自带的GM_addStyle,似乎不需要额外监控dom,试试看吧

등급: 0