유튜브 풀스크린

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

< 유튜브 풀스크린 피드백

리뷰: 좋음 - 잘 동작함

§
작성: 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

댓글 남기기

댓글을 남기려면 로그인하세요.