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 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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