您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
I can fix it
// ==UserScript== // @name Youtube Home Rescaler // @namespace LeKAKiD // @version 2025-04-25 // @description I can fix it // @author LeKAKiD // @match https://www.youtube.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com // @grant none // @license MIT // ==/UserScript== (async function() { const grid = await new Promise((resolve) => { const observer = new MutationObserver(() => { const element = document.querySelector('#primary > ytd-rich-grid-renderer'); if(element) { resolve(element); observer.disconnect(); } }); observer.observe(document.body, {childList: true, subtree: true}); }); grid.style.setProperty('--ytd-rich-grid-items-per-row', 4); const observer = new MutationObserver(() => { grid.style.setProperty('--ytd-rich-grid-items-per-row', 4); }); observer.observe(grid, {attributes: true}); })();