MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / addNonceAttribute

Function addNonceAttribute

src/injected/content/inject.js:406–408  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

404}
405
406export function addNonceAttribute(script) {
407 if (nonce) script::setAttribute('nonce', nonce);
408}
409
410function addVaultExports(vaultSrc) {
411 if (!vaultSrc) return; // blocked by CSP

Callers 2

AddElementFunction · 0.90
injectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected