Greasy Fork is available in English.

Pre 2024 Youtube UI

Revert to old Youtube UI

< Pre 2024 Youtube UIについてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 2024/03/03

Have to refresh page everytime for it to take effect

§
投稿日: 2024/03/09
編集日: 2024/03/09
  1. change
// @run-at      document-end

to

// @run-at      document-start
// @inject-into page
// @require     https://update.greasyfork.org/scripts/475632/1252746/ytConfigHacks.js
  1. change following


(function () {
  'use strict';
  setInterval(function () {
    // Revert the new YouTube 2024 redesign experiment flags
    ytcfg.set('EXPERIMENT_FLAGS', {
      web_player_enable_featured_product_banner_exclusives_on_desktop: false,
      kevlar_watch_comments_ep_disable_theater: true,
      kevlar_watch_comments_panel_button: true,
      fill_view_models_on_web_vod: true,
      kevlar_watch_flexy_metadata_height: 136,
      kevlar_watch_grid: false,
      kevlar_watch_max_player_width: 1280,
      live_chat_over_engagement_panels: false,
      live_chat_scaled_height: false,
      live_chat_smaller_min_height: false,
      main_app_controller_extraction_batch_18: false,
      main_app_controller_extraction_batch_19: false,
      no_iframe_for_web_stickiness: false,
      optimal_reading_width_comments_ep: false,
      remove_masthead_channel_banner_on_refresh: false,
      small_avatars_for_comments: false,
      small_avatars_for_comments_ep: false,
      web_watch_compact_comments: false,
      web_watch_compact_comments_header: false,
      web_watch_log_theater_mode: false,
      web_watch_theater_chat: false,
      web_watch_theater_fixed_chat: false,
      wn_grid_max_item_width: 0,
      wn_grid_min_item_width: 0,
    });
  }, 100);


})();

to


_ytConfigHacks.add((config_) => {
    const EXPERIMENT_FLAGS = config_.EXPERIMENT_FLAGS;
    if (EXPERIMENT_FLAGS) {
        Object.assign(EXPERIMENT_FLAGS, {
            web_player_enable_featured_product_banner_exclusives_on_desktop: false,
            kevlar_watch_comments_ep_disable_theater: true,
            kevlar_watch_comments_panel_button: true,
            fill_view_models_on_web_vod: true,
            kevlar_watch_flexy_metadata_height: 136,
            kevlar_watch_grid: false,
            kevlar_watch_max_player_width: 1280,
            live_chat_over_engagement_panels: false,
            live_chat_scaled_height: false,
            live_chat_smaller_min_height: false,
            main_app_controller_extraction_batch_18: false,
            main_app_controller_extraction_batch_19: false,
            no_iframe_for_web_stickiness: false,
            optimal_reading_width_comments_ep: false,
            remove_masthead_channel_banner_on_refresh: false,
            small_avatars_for_comments: false,
            small_avatars_for_comments_ep: false,
            web_watch_compact_comments: false,
            web_watch_compact_comments_header: false,
            web_watch_log_theater_mode: false,
            web_watch_theater_chat: false,
            web_watch_theater_fixed_chat: false,
            wn_grid_max_item_width: 0,
            wn_grid_min_item_width: 0,
        });
    }
});

§
投稿日: 2024/03/19

Unfortunately this change no longer works

返信を投稿

返信を投稿するにはログインしてください。