When I try this in the Chrome Devtools in a VS Code window,
const s = document.createElement('script')
s.src="https://unpkg.com/[email protected]/dist/global.js"
it results in this error:
This document requires 'TrustedScriptURL' assignment.
Uncaught TypeError: Failed to set the 'src' property on 'HTMLScriptElement': This document requires 'TrustedScriptURL' assignment.
How do I get around this so that I can hack my VS Code locally to do what I want? For example, I want to inject WebGL animations behind my editor text, or other fun local experiments.