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

Interface Script

src/types.d.ts:366–381  ·  view source on GitHub ↗

* Script prepared for injection

Source from the content-addressed store, hash-verified

364 * Script prepared for injection
365 */
366 interface Script {
367 displayName: string;
368 /** -1 ID_BAD_REALM if the desired realm is PAGE which is not injectable */
369 code: string | -1;
370 /** Omitted props are added in makeGmApiWrapper */
371 gmi: Omit<VMScriptGMInfoObject, 'injectInto' | 'resources' | 'script' | 'scriptMetaStr'>;
372 id: number;
373 injectInto: VMScriptInjectInto;
374 key: { data: string, win: string };
375 /** `resources` is still an object, converted later in makeGmApiWrapper */
376 meta: VMScript['meta'] | VMScriptGMInfoScriptMeta;
377 metaStr: (string|number)[];
378 pathMap: StringMap;
379 runAt?: RunAt;
380 values?: StringMap;
381 }
382}
383
384declare interface VMRealmData {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected