Skip to content

Change video grid size, and remove shorts by troy0h

Details

Authortroy0h

LicenseNo License

Categorywww.youtube.com

Created

Updated

Code size624 B

Code checksuma3b9998f

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Gives you the ability to edit the grid size on YouTube, and hides shorts and playables

Notes

Edit "--ytd-rich-grid-items-per-row: 6;" to change the grid size

Source code

/* ==UserStyle==
@name           www.youtube.com
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    Makes videos smaller on the home screen, and hides shorts and playables
@author         troy0h
==/UserStyle== */

@-moz-document domain("youtube.com") {
     .style-scope.ytd-rich-grid-renderer{
        --ytd-rich-grid-items-per-row: 6;  /* Number of videos in a row */
    }

    ytd-rich-item-renderer[is-in-first-column] {
        display: none; /* Hides extra padding between videos */
    }

    ytd-rich-section-renderer {
        display: none; /* Hides shorts and playables */
    }
}

Reviews

No reviews yet.