Greasy Fork 还支持 简体中文。

YouTube: Single Column Tamer

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
𝖢𝖸 𝖥𝗎𝗇𝗀
今日安裝
0
安裝總數
71
評價
1 0 0
版本
0.1.8
建立日期
2023-12-08
更新日期
2024-04-16
尺寸
9.4 KB
授權條款
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