Greasy Fork 还支持 简体中文。

YouTube: Single Column Tamer

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

2024-04-13 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
𝖢𝖸 𝖥𝗎𝗇𝗀
평점
0 0 0
버전
0.1.7
생성일
2023-12-08
갱신일
2024-04-13
크기
9.4KB
라이선스
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