Greasy Fork

来自缓存

Greasy Fork is available in English.

Max Max

Quality of life changes to Max.com

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);
})();