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

< Feedback on Trusted-Types Helper

Question/comment

§
Posted: 28. 09. 2021
Edited: 28. 09. 2021

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

§
Posted: 28. 09. 2021

😅 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

§
Posted: 28. 09. 2021

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

Post reply

Sign in to post a reply.