MCPcopy Index your code
hub / github.com/violentmonkey/violentmonkey / getScriptRunAt

Function getScriptRunAt

src/common/script.js:51–53  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

49
50/** @returns {VMInjection.RunAt} without "document-" */
51export function getScriptRunAt(script) {
52 return `${script.custom[RUN_AT] || script.meta[RUN_AT] || ''}`.match(RUN_AT_RE)?.[1] || 'end';
53}
54
55/** URL that shows the name of the script and opens in devtools sources or in our editor */
56export function getScriptPrettyUrl(script, displayName) {

Callers 1

getScriptsByURLFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected