您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Forces five items per row in main/subscriptions feeds
// ==UserScript== // @name YouTube - Force five items per row // @namespace Violentmonkey Scripts // @match *://www.youtube.com/* // @version 1.0 // @author jez9999 // @description Forces five items per row in main/subscriptions feeds // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // ******************** // Reminder: set the following in Violentmonkey advanced settings for Editor: // "tabSize": 4, // "indentUnit": 4, // "autoCloseBrackets": false, // // Also, bear in mind there appears to be a bug in Violentmonkey where after a while, MutationObserver's // stop being debuggable and the whole browser needs restarting before it'll work again. // ******************** // Allow strings for HTML/CSS/etc. trusted injections if (window.trustedTypes && window.trustedTypes.createPolicy && !window.trustedTypes.defaultPolicy) { window.trustedTypes.createPolicy('default', { createHTML: string => string, createScriptURL: string => string, createScript: string => string }); } // Force five items per row var sheet = document.createElement('style'); sheet.innerHTML = ` ytd-rich-grid-renderer { --ytd-rich-grid-items-per-row: 5 !important; } `; document.head.appendChild(sheet); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址