您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Increase the videos per row on all page.
当前为
// ==UserScript== // @name YouTube Videos Per Row Fix // @version 1.0.0 // @author sapondanaisriwan // @description Increase the videos per row on all page. // @match https://www.youtube.com/* // @grant none // @license MIT // @run-at document-start // @icon https://i.imgur.com/I9uDrsq.png // @namespace https://greasyfork.org/en/users/1021085-sapondanaisriwan // @homepageURL https://github.com/sapondanaisriwan/youtube-videos-per-row-fix // @supportURL https://github.com/sapondanaisriwan/youtube-videos-per-row-fix/issues // @require https://greasyfork.org/scripts/465819-api-for-customelements-in-youtube/code/API%20for%20CustomElements%20in%20YouTube.js?version=1187694 // ==/UserScript== /* If you want to submit a bug or request a feature please report via github issue. Since I receive so many emails, I can't reply to them all. Contact: [email protected] Support me: https://ko-fi.com/sapondanaisriwan Support me: https://ko-fi.com/sapondanaisriwan Support me: https://ko-fi.com/sapondanaisriwan Support me: https://ko-fi.com/sapondanaisriwan Support me: https://ko-fi.com/sapondanaisriwan */ 'use strict'; // Thanks so much to CY Fung (https://greasyfork.org/en/users/371179-cy-fung) for helping me. const videosPerRow = 5 const target = 'ytd-rich-grid-renderer' customYtElements.whenRegistered(target, (proto) => { proto.calcElementsPerRow = () => videosPerRow; });