Youtube watch page update reverter

Reverts the shitty watch page updates to the old versions. Also removes rounded thumbnails and other 2022 Youtube updates.

目前为 2022-11-01 提交的版本,查看 最新版本

// ==UserScript==
// @name         Youtube watch page update reverter
// @version      5.0
// @description  Reverts the shitty watch page updates to the old versions. Also removes rounded thumbnails and other 2022 Youtube updates.
// @author       Cat Bot
// @license MIT
// @match        *://*.youtube.com/*
// @namespace    https://www.reddit.com/user/Cat_Bot4
// @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_darker_dark_theme = false; //set this to true if you want to keep the darker dark mode
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_cinematics = false; //set this to true if you want to to keep the cinematic lighting feature
        yt.config_.EXPERIMENT_FLAGS.web_rounded_thumbnails = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_playlists = false;
        yt.config_.EXPERIMENT_FLAGS.web_animated_like = false;
        yt.config_.EXPERIMENT_FLAGS.web_button_rework = false;
        yt.config_.EXPERIMENT_FLAGS.web_rounded_containers = false;
        yt.config_.EXPERIMENT_FLAGS.web_sheets_ui_refresh = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_buttons = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_ads = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_chips = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_subscribe = false;
        yt.config_.EXPERIMENT_FLAGS.web_modern_subscribe_style = false;
        yt.config_.EXPERIMENT_FLAGS.web_searchbar_style = "default";
        yt.config_.EXPERIMENT_FLAGS.web_segmented_like_dislike_button = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh_attached_subscribe = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh_clickable_description = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh_compact_view_count = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh_description_info_dedicated_line = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh_description_inline_expander = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_modern_panels = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh_relative_date = false;
        yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh_description_lines = "3";
        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;
    }, 1);

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

(function() {
ApplyCSS();

function ApplyCSS() {
var styles = document.createElement("style");
styles.innerHTML=`
ytd-video-primary-info-renderer[use-yt-sans20-light] .title.ytd-video-primary-info-renderer {
  font-family: "Roboto",sans-serif;
  font-weight: 400;
  font-size: 18px;
}`
document.head.appendChild(styles);
}
})();