Youtubeフルスクリーンモードの

ユーチューブ画面を高さ100、広さ100画面に自動転換。

< Youtubeフルスクリーンモードのについてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 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

返信を投稿

返信を投稿するにはログインしてください。