Move fullscreen button out of the submenu

Hi Florian, I got another small suggestion for the UI layout:

UserScript to move the button

Click to install (w/ updates via GitHub)

// ==UserScript==
// @name        Watch2Gether - Move Fullscreen Button
// @match       https://*.w2g.tv/*
// @grant       none
// @version     0.0.1
// @author      aequabit
// @description Moves the fullscreen button out of the settings submenu, next to it.
// ==/UserScript==

(async () => {
    async function wait_for(conditional, interval = 100) {
        return new Promise(resolve => {
            const _wait_for_interval = setInterval(() => {
                if (conditional() === true) {
                    clearInterval(_wait_for_interval);
                    resolve();
                }
            }, interval);
        });
    }

    let fullscreenButton = null;
    await wait_for(() => (fullscreenButton = document.getElementById("fullscreen_button")) !== null);

    const fullscreenButtonLabel = fullscreenButton.querySelector(".popup_label");
    if (fullscreenButtonLabel)
        fullscreenButtonLabel.innerText = "";

    const playerControls = document.getElementById("player_controls");
    if (!playerControls)
        return;

    playerControls.appendChild(fullscreenButton);
})();

Thanks for your suggestion! You’d rather see the button out of the submenu because it’s often used? Or what is your intention?