ytConfigHacks

To provide a way to hack the yt.config_ such as EXPERIMENT_FLAGS

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

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/475632/1252573/ytConfigHacks.js

作者
𝖢𝖸 𝖥𝗎𝗇𝗀
版本
0.1.3
创建于
2023-09-19
更新于
2023-09-19
大小
2.9 KB
许可证
MIT

The script must be included from a userscript with the following metablocks

  • // @match https://www.youtube.com/*
  • // @run-at document-start
  • // @inject-into page
  • // @grant none

Then an array window._ytConfigHacks will be provided and push your function into the array.

Testing

// ==UserScript==
// @name        New1235
// @namespace   Violentmonkey Scripts
// @match       https://gf.qytechs.cn/*
// @grant       none
// @version     1.0
// @author      -
// @description 9/19/2023, 10:41:12 AM
// @require https://gf.qytechs.cn/scripts/475632-ytconfighacks/code/ytConfigHacks.js?version=1252568
// ==/UserScript==


console.log(window._ytConfigHacks)

window._ytConfigHacks.push(function(){
  console.log('test OK')
});


window.ytcsi={
  tick:function(){}
}

window.yt={}
window.yt.config_={};

ytcsi.tick;

QingJ © 2025

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