YouTube: Disable VOLUME_STABLE

To disable stable volumne (Drc Audio)

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        YouTube: Disable VOLUME_STABLE
// @namespace   Userscripts
// @match       https://www.youtube.com/*
// @grant       none
// @version     0.1.0
// @author      CY Fung
// @description To disable stable volumne (Drc Audio)
// @run-at      document-start
// @unwrap
// @require     https://update.greasyfork.org/scripts/475632/1361351/ytConfigHacks.js
// @inject-into page
// @license MIT
// ==/UserScript==

window._ytConfigHacks.add((config_) => {

    let o = (((config_ || 0).WEB_PLAYER_CONTEXT_CONFIGS || 0).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH || 0);
    if (typeof o.serializedExperimentFlags === 'string' && o.serializedExperimentFlags.length > 25) {
        o.serializedExperimentFlags = `&${o.serializedExperimentFlags}&`.replace('&html5_show_drc_toggle=true&', '&').slice(1, -1);
    }

});