유튜브 풀스크린

유튜브 화면을 자동으로 꽉 찬 화면으로 바꿉니다.

< 유튜브 풀스크린 피드백으로 돌아가기

리뷰: 좋음 - 스크립트가 잘 작동함

§
게시: 2024-12-16
수정: 2024-12-16

I had to fix the isTheatherMode function like this

function isTheaterMode() {
    let scrollbarWidth = window.innerWidth - document.querySelector('ytd-app')?.offsetWidth;
    let playerWidth = document.querySelector('#ytd-player')?.offsetWidth;
    let chatWidth = (!document.querySelector('ytd-live-chat-frame').attributes.collapsed && document.querySelector('ytd-live-chat-frame')?.offsetWidth) || 0;
    let isWidePlayer = scrollbarWidth + playerWidth + chatWidth === window.innerWidth;
    return (isWatchPage() && isWidePlayer);
}

by adding the check if the live chat was not collapsed

please update

ndaesik작성자
§
게시: 2024-12-17

How did you collocated the YouTube chat window?
Isn't it a property added by external extension?

ndaesik작성자
§
게시: 2024-12-18

by adding the check if the live chat was not collapsed

please update

You were right, I'd updated. Thanks a lot!

<3

답글 게시

답글을 게시하려면 로그인하세요.