Max Max

Quality of life changes to Max.com

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Max Max
// @namespace    ccn0
// @version      5
// @description  Quality of life changes to Max.com
// @author       CCN0
// @license      MIT
// @match        *://*.hbomax.com/*
// @icon         https://external-content.duckduckgo.com/ip3/www.max.com.ico
// @grant GM_addStyle
// ==/UserScript==

(function() {
    GM_addStyle(`
    [class^="Title-Beam-Web-Ent"],
    [class^="SeasonEpisode-Beam-Web-Ent"],
    [class^="Subtitle-Beam-Web-Ent"],
    [data-testid^="player-ux-scrubber-timestamp"],
    [data-testid^="player-ux-scrubber-position"] {
        opacity: 0.5;
        user-select: text;
    }

    [data-testid^="player-ux-scrubber-track"] {
        opacity: 0.2;
    }

    [class^="ControlsFooterBottom-Beam-Web-Ent"] {
        margin-bottom: -20px;
        margin-top: -10px;
    }

    [class^="TopGradient-Beam-Web-Ent"],
    [class^="BottomGradient-Beam-Web-Ent"],
    [class^="RatingsAdvisoriesContainer-Beam-Web-Ent"] {
        opacity: 0;
    }

    [class^="SeasonEpisodeSubtitleContainer-Beam-Web-Ent"] {
        height: 10px;
    }
    `);
    function maxMaxMax() {
        var skipbutton = document.querySelector('[data-testid="player-ux-skip-button"]');
        if (skipbutton) {skipbutton.click()};

        function removeElements(selector) {
            const elements = document.querySelectorAll(selector);
            elements.forEach(element => {
                element.remove();
            });
        };


        if (location.href.includes('/video/watch')) {
            const svgbuttons = document.querySelectorAll('svg');
            svgbuttons.forEach(element => {
                element.style.opacity = "0.5";
        });}

        removeElements('[class^="ControlsFooterBottomLeft-Beam-Web-Ent"]');
    };

    setInterval(maxMaxMax,500);
})();