Greasy Fork is available in English.

YouTube: Single Column Tamer

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

ผู้เขียน
𝖢𝖸 𝖥𝗎𝗇𝗀
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
39
คะแนน
1 0 0
เวอร์ชัน
0.1.8
สร้างเมื่อ
08-12-2023
อัปเดตเมื่อ
16-04-2024
สัญญาอนุญาต
MIT
ปรับใช้กับ

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