Huhu.to fullscreen fix

fullscreen fix

// ==UserScript==
// @name         Huhu.to fullscreen fix
// @namespace    http://tampermonkey.net/
// @version      2024-11-22
// @description  fullscreen fix
// @author       Serbian_Fantom
// @match        https://huhu.to/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=huhu.to
// @grant        none
// @license community
// ==/UserScript==

(function() {
    'use strict';

    document.addEventListener('fullscreenchange', function(){
        let el = document.querySelector('video-js').lastChild

        if(!el.getAttribute('hidden')){
            el.setAttribute('hidden', true);
        }else{
            el.removeAttribute('hidden');
        }
    })
})();