你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/433051-trusted-types-helper/discussions/100039,源站連結 點此以跳轉

Trusted-Types Helper

I mainly wrote this in 2021 to enable TamperMonkey to continue using scripts that have `@require` dependencies on sites with a restrictive `Trusted-Types` policy, until TM v4.14 came out (milestone: https://github.com/Tampermonkey/tampermonkey/issues/1334#event-5361683856). Now it seems like some cases make it relevant again? I think that should be only temporary until the TM team get on top of what ever changed. Make sure this script is executed before the `@require`ing of any dependencies

< 脚本 Trusted-Types Helper 的反馈

提问 / 留言

StephenP管理员
§
发布于:2021-09-28
编辑于:2021-09-28

Hi, I think there might be an error at line 36: the type used in the expression should be "undefined", not "unfefined".

§
发布于:2021-09-28

😅 argh, of course! Thank you!

Switching from GreaseMonkey 3.17, where you could edit the actual script files directly, with a real code editor, to TamperMonkey (GreaseMonkey >3.17 is just a shadow of its former self :/), I'm having to getting used to being more careful with typos that aren't flagged in the meager browser editor/linter ^^

Updated under the same version (no reason for the former state of this version to exist)

Thanks again

§
发布于:2021-09-28

Had a look at my horribly outdated custom linter config and updated it. Much better ^^

发布留言

登录以发布留言。