Open cy0o0 opened 2 months ago
由于jQuery的Trusted Types问题导致脚本无法在youtube上执行,应用如下方案暂时解决该问题 // @resource jquery https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-y/jquery/3.2.1/jquery.min.js // @grant GM_getResourceText trustedTypes?.createPolicy?.('default', {createScriptURL: s => s, createScript: s => s, createHTML: s => s}) eval(GM_getResourceText('jquery'))
// @resource jquery https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-y/jquery/3.2.1/jquery.min.js
// @grant GM_getResourceText
trustedTypes?.createPolicy?.('default', {createScriptURL: s => s, createScript: s => s, createHTML: s => s})
eval(GM_getResourceText('jquery'))
由于jQuery的Trusted Types问题导致脚本无法在youtube上执行,应用如下方案暂时解决该问题
// @resource jquery https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-y/jquery/3.2.1/jquery.min.js
// @grant GM_getResourceText
trustedTypes?.createPolicy?.('default', {createScriptURL: s => s, createScript: s => s, createHTML: s => s})
eval(GM_getResourceText('jquery'))