Dynamically adjusts the YouTube video grid to display an optimal number of videos per row based on window width, overriding the default 3-video grid for a more responsive layout
「 Dynamically adjust the YouTube video grid based on window width to display the best number of videos per line, overwriting the default 3 video grids for faster responsive layouts 」
Download:Github | ⭐Greasy Fork
🧑💻 @nicholas-fedor ⇒ 📜 youtube-dynamic-grid
Dynamically adjust the number of videos displayed per line according to the width of the browser window,OptimizedYouTubeVideo grid layout。
This script ensures that the layout is responsive,This optimizes screen space,Provide a better browsing experience。
This script calculates the best number of videos(Between3arrive12between),and apply the necessaryCSScover。
This script cannot be guaranteed to be valid for a long time。
Using scripts:
?debug=1(For example,https://www.youtube.com/?debug=1)Debug logs can be enabled。*://www.youtube.com/* and *://youtube.com/*)Automatically run on。videoWidth: 340px(Thumbnail width,Applicable to3440x1440The screen displays about9A video)margin: 40px(Total margins on the left and right)gap: 10px(Thumbnail spacing)
Recommended browser and script manager:
If you need to learn more about how to install user scripts,Click meView the teaching of pictures and texts!

