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

Function getScriptById

src/background/utils/db.js:248–250  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

246
247/** @return {?VMScript} */
248export function getScriptById(id) {
249 return scriptMap[id];
250}
251
252export function getScriptsByIdsOrAll(ids) {
253 return ids?.map(getScriptById) ?? [...aliveScripts, ...removedScripts];

Callers 7

update.jsFile · 0.90
MarkRemovedFunction · 0.85
MoveFunction · 0.85
getScriptFunction · 0.85
reportBadScriptsFunction · 0.85
vacuumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected