Disable new rounded buttons

This script disables YouTube's new rounded corners (including animated icons and new watch layout)

目前為 2022-10-31 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Disable new rounded buttons
// @version      1.5
// @description  This script disables YouTube's new rounded corners (including animated icons and new watch layout)
// @author       Magma_Craft
// @license MIT
// @match        *://*.youtube.com/*
// @namespace    https://greasyfork.org/en/users/933798
// @icon         https://www.youtube.com/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    window['yt'] = window['yt'] || {};
    yt['config_'] = yt.config_ || {};
    yt.config_['EXPERIMENT_FLAGS'] = yt.config_.EXPERIMENT_FLAGS || {};

    var iv = setInterval(function() {
        yt.config_.EXPERIMENT_FLAGS.web_button_rework = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_buttons = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_modern_metapanel = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_modern_panels = false;
        yt.config_.EXPERIMENT_FLAGS.web_rounded_containers = false;
        yt.config_.EXPERIMENT_FLAGS.web_rounded_thumbnails = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_dialogs = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_chips = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_subscribe = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_buttons = false;
        //yt.config_.EXPERIMENT_FLAGS.web_modern_playlists = true;
        //yt.config_.EXPERIMENT_FLAGS.enable_programmed_playlist_redesign = true;
        //yt.config_.EXPERIMENT_FLAGS.web_amsterdam_playlists = true;
        yt.config_.EXPERIMENT_FLAGS.web_searchbar_style = "default",
        yt.config_.EXPERIMENT_FLAGS.web_button_rework = false;
        yt.config_.EXPERIMENT_FLAGS.web_darker_dark_theme = false;
        yt.config_.EXPERIMENT_FLAGS.web_guide_ui_refresh = false;
        yt.config_.EXPERIMENT_FLAGS.web_sheets_ui_refresh = false;
        yt.config_.EXPERIMENT_FLAGS.web_snackbar_ui_refresh = false;
        yt.config_.EXPERIMENT_FLAGS.web_segmented_like_dislike_button = false;
        yt.config_.EXPERIMENT_FLAGS.web_animated_like = false;
        yt.config_.EXPERIMENT_FLAGS.web_animated_like_lazy_load = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_use_ytd_player = false;
    }, 1);

    var to = setTimeout(function() {
        clearInterval(iv);
    }, 1000)
})();