Greasy Fork is available in English.

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Συντονιστής
§
Δημοσιεύτηκε: 28/09/2021
Επεξεργάστηκε: 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".

Benjamin PhilippΔημιουργός
§
Δημοσιεύτηκε: 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

Benjamin PhilippΔημιουργός
§
Δημοσιεύτηκε: 28/09/2021

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

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.