Hide youtube theather mode button

It's in the name

Mint 2023.03.09.. Lásd a legutóbbi verzió

// ==UserScript==
// @name         Hide youtube theather mode button
// @version      1.0
// @description  It's in the name
// @author       equmaq
// @match        https://www.youtube.com/watch*
// @grant        none
// @license      MIT
// @namespace https://greasyfork.org/users/990886
// ==/UserScript==

(function() {
    'use strict';
    
    // Get the element to delete using its Xpath
    const elementToDelete = document.evaluate(
        '//*[@id="movie_player"]/div[28]/div[2]/div[2]/button[12]',
        document,
        null,
        XPathResult.FIRST_ORDERED_NODE_TYPE,
        null
    ).singleNodeValue;
    
    // Delete the element if it exists
    if (elementToDelete) {
        elementToDelete.remove();
    }
})();