YouTube Config Editor (fixed version)

Edits yt.config_

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/477501/1265277/YouTube%20Config%20Editor%20%28fixed%20version%29.js

  1. // ==UserScript==
  2. // @name YouTube Config Editor (fixed version)
  3. // @version 1.0.1
  4. // @description Edits yt.config_
  5. // @author Magma_Craft, Kyle Boyd (original author)
  6. // @match *://*.youtube.com/*
  7. // @icon https://www.google.com/s2/favicons?domain=youtube.com
  8. // @run-at document-start
  9. // @license MIT
  10. // @namespace https://gf.qytechs.cn/en/users/933798
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. window['yt'] = window['yt'] || {};
  16. yt['config_'] = yt.config_ || {};
  17. yt.config_['EXPERIMENT_FLAGS'] = yt.config_.EXPERIMENT_FLAGS || {};
  18. var iv = setInterval(function() {
  19. //disable flexy player :D
  20. yt.config_.EXPERIMENT_FLAGS.kevlar_watch_snap_sizing = true;
  21. //probably for m.youtube.com
  22. yt.config_.IS_TABLET = true;
  23. //new mic dark background(not working)
  24. yt.config_.EXPERIMENT_FLAGS.desktop_mic_background = false;
  25. //dk what is this
  26. yt.config_.EXPERIMENT_FLAGS.polymer_verifiy_app_state = false;
  27. //hh search bar
  28. yt.config_.SBOX_SETTINGS.IS_POLYMER = false;
  29. //disables the "warm loading" thingy, ie the red bar when loading, letting the page load completely fresh every single time
  30. //yt.config_.DISABLE_WARM_LOADS = true;
  31. //yt.config_.EXPERIMENT_FLAGS.warm_load_nav_start_web = false;
  32. yt.config_.EXPERIMENT_FLAGS.kevlar_player_response_swf_config_wrapper_killswitch = false;
  33. //yt.config_.WEB_PLAYER_CONTEXT_CONFIGS.WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH.playerStyle = "blazer";
  34. yt.config_.EXPERIMENT_FLAGS.desktop_player_touch_gestures = false;
  35. //loads images faster damnit
  36. yt.config_.DISABLE_YT_IMG_DELAY_LOADING = true;
  37. //disable new icons
  38. yt.config_.EXPERIMENT_FLAGS.kevlar_updated_icons = false;
  39. yt.config_.EXPERIMENT_FLAGS.kevlar_system_icons = false;
  40. yt.config_.EXPERIMENT_FLAGS.kevlar_watch_color_update = false;
  41. yt.config_.EXPERIMENT_FLAGS.kevlar_watch_structured_description_height_matches_player = true;
  42. yt.config_.EXPERIMENT_FLAGS.kevlar_watch_skeleton = false;
  43. yt.config_.EXPERIMENT_FLAGS.web_structure_description_show_metadata = true;
  44. }, 1);
  45. var to = setTimeout(function() {
  46. clearInterval(iv);
  47. }, 1000)
  48. })();
  49.  
  50. document.getElementsByTagName("html")[0].removeAttribute("system-icons");
  51. document.getElementsByTagName("html")[0].removeAttribute("darker-dark-theme");
  52. document.getElementsByTagName("html")[0].removeAttribute("darker-dark-theme-deprecate");

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址