YouTube in compact

Show 6 video in row on YouTube

当前为 2019-12-08 提交的版本,查看 最新版本

// ==UserScript==
// @name         YouTube in compact
// @namespace    http://tampermonkey.net/
// @version      0.3.1
// @description  Show 6 video in row on YouTube
// @author       Alex.nfo
// @match        *://www.youtube.com/
// @exclude      *://www.youtube.com/watch?v=*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    //Show 6 contents per row(you could change by setting the value in --ytd-rich-grid-items-per-row:*6*)
    document.getElementsByTagName("ytd-rich-grid-renderer")[0].style = "--ytd-rich-grid-items-per-row:6; --ytd-rich-grid-posts-per-row:3; --ytd-rich-grid-movies-per-row:7";
    //Make font size to 8px(you could change by setting the value in font-size: *8px*)
    document.getElementsByTagName("html")[0].style = "font-size: 9px;font-family: Roboto, Arial, sans-serif; ";
})();