NOTICE: By continued use of this site you understand and agree to the binding شروط الخدمة and سياسة الخصوصية.
Install steps: Install a userscript manager, select Install, then open a website matched by the script.
كيفية استخدام برنامج Userscript للمبتدئين Chrome Edge Firefox
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:
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