YouTube: Force Animated-Rolling-Number

To force YouTube use Animated-Rolling-Number for YouTube Live

目前为 2023-09-19 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube: Force Animated-Rolling-Number
  3. // @namespace UserScripts
  4. // @match https://www.youtube.com/*
  5. // @grant none
  6. // @version 0.1.2
  7. // @author CY Fung
  8. // @license MIT
  9. // @description To force YouTube use Animated-Rolling-Number for YouTube Live
  10. // @run-at document-start
  11. // @inject-into page
  12. // @unwrap
  13. // @require https://greasyfork.org/scripts/475632-ytconfighacks/code/ytConfigHacks.js?version=1252732
  14. // ==/UserScript==
  15.  
  16. (() => {
  17.  
  18. window._ytConfigHacks.add((config_) => {
  19.  
  20. const EXPERIMENT_FLAGS = config_.EXPERIMENT_FLAGS;
  21.  
  22. if (EXPERIMENT_FLAGS) {
  23.  
  24. EXPERIMENT_FLAGS.web_enable_dynamic_metadata = true;
  25. EXPERIMENT_FLAGS.dynamic_metadata_update_interaction_delay_period_sec = 8;
  26.  
  27.  
  28. }
  29.  
  30. });
  31.  
  32. })();