polymer_enable_controller_extraction

7/3/2023, 11:16:26 PM

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

  1. // ==UserScript==
  2. // @name polymer_enable_controller_extraction
  3. // @namespace test
  4. // @match https://www.youtube.com/*
  5. // @grant none
  6. // @version 1.2
  7. // @author -
  8. // @description 7/3/2023, 11:16:26 PM
  9. // @run-at document-start
  10. // @allFrames true
  11. // @require https://greasyfork.org/scripts/475632-ytconfighacks/code/ytConfigHacks.js?version=1252709
  12. // ==/UserScript==
  13.  
  14. (() => {
  15.  
  16. window._ytConfigHacks.add((config_) => {
  17.  
  18. const EXPERIMENT_FLAGS = config_.EXPERIMENT_FLAGS;
  19.  
  20. if (EXPERIMENT_FLAGS) {
  21.  
  22. EXPERIMENT_FLAGS.polymer_enable_controller_extraction=true
  23.  
  24. }
  25.  
  26. });
  27.  
  28. })();