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

Interface BG

src/types.d.ts:36–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 type Response = string | Blob | ArrayBuffer;
35 type UserOpts = VMScriptGMDownloadOptions | VMScriptGMXHRDetails;
36 interface BG {
37 cb: (data: GMReq.Message.BGAny) => Promise<void>;
38 /** use browser's `Cookie` header */
39 cookie?: boolean;
40 /** allow Set-Cookie header to affect browser */
41 'set-cookie'?: boolean;
42 coreId: number;
43 /** Firefox-only workaround for CSP blocking a blob: URL */
44 fileName: string;
45 frame: VMMessageTargetFrame;
46 frameId: number;
47 id: string;
48 responseHeaders: string;
49 storeId: string;
50 tabId: number;
51 url: string;
52 xhr: XMLHttpRequest;
53 }
54 interface Content {
55 chunks?: Uint8Array | string[];
56 fileName: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected