Youtube Fullscreen Mode

Automatically switch YouTube screens to 100 height and 100 width screens.

< Feedback on Youtube Fullscreen Mode

Review: चांगली - स्क्रिप्ट चालते

§
पोस्ट केले: 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!

उत्तर पोस्ट करा

उत्तर पोस्ट करण्यासाठी साइन इन करा.