Greasy Fork is available in English.

YouTube: Single Column Tamer

Re-adoption of Single Column Detection against video and browser sizes

Autor
𝖢𝖸 𝖥𝗎𝗇𝗀
Dnevne instalacije
0
Ukupno instalacija
56
Ocene
1 0 0
Verzija
0.1.8
Napravljeno
08/12/2023
Ažurirano
16/04/2024
Licenca
MIT
Važi za

YouTube: Single Column Tamer

Note for Vertical Streaming

This has been developed before Vertical Streaming was implemented

After the Vertical Streaming released, it was tested without any issues.

Calculation Explanation

  1. The height (CH) and width (CW) of the browser.
  2. If CH > CW, the following calculations 3 to 5 will be carried out.
  3. Find RVH = Calculate the maximum height of the video based on the aspect ratio of CW and the video length (which is the height of the video when stretched to the widest based on the aspect ratio).
  4. If there is space below after deducting RVH from CH, it will check if it meets the minimum bottom position size (default is 20% CH).
  5. If there is enough space, it will switch to single-column display.
  6. Otherwise, it will be two-column display.

計算的說明

  1. 瀏覽器的高(CH)和闊(CW)
  2. 如果 CH > CW,就會進行下面 3~5 的計算。
  3. 找出RVH=按照 CW 和影片長闊比計算出影片最大高度 (也就是把影片按長闊比拉到最闊的時候的影片高度)
  4. 如果 CH 扣除 RVH,下面還有位置的話,就會檢查有沒有達到最小的下方位置大小 (預設是 20% CH
  5. 如果有這麼多的空位的話,就會改為單欄顯示
  6. 否則就是兩欄顯示

Usage

  1. Use YouTube Desktop with Portrait Monitor (Window)
  2. Narrow YouTube Window for Portrait Live

Example - Vertical

Example - Extra Wide