유튜브 화면을 자동으로 꽉 찬 화면으로 바꿉니다.
< 유튜브 풀스크린 피드백
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
How did you collocated the YouTube chat window?Isn't it a property added by external extension?
by adding the check if the live chat was not collapsedplease update
You were right, I'd updated. Thanks a lot!
<3
댓글을 남기려면 로그인하세요.
I had to fix the isTheatherMode function like this
by adding the check if the live chat was not collapsed
please update