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

Function normalizeScriptRealm

src/background/utils/preinject.js:110–112  ·  view source on GitHub ↗
(custom, meta)

Source from the content-addressed store, hash-verified

108 KNOWN_INJECT_INTO[val] ? val : injectInto || AUTO
109);
110const normalizeScriptRealm = (custom, meta) => (
111 normalizeRealm(custom[INJECT_INTO] || meta[INJECT_INTO])
112);
113const isContentRealm = (val, force) => (
114 val === CONTENT || val === AUTO && force
115);

Callers 2

prepareScriptFunction · 0.85
isPageRealmScriptFunction · 0.85

Calls 1

normalizeRealmFunction · 0.85

Tested by

no test coverage detected