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

Function createObjectURL

test/mock/polyfill.js:48–52  ·  view source on GitHub ↗
(blob)

Source from the content-addressed store, hash-verified

46Object.assign(URL, {
47 blobCache: {},
48 createObjectURL(blob) {
49 const blobUrl = `blob:${Math.random()}`;
50 URL.blobCache[blobUrl] = blob;
51 return blobUrl;
52 },
53});
54Object.assign(global, require('@/common/safe-globals-shared'));
55Object.assign(global, require('@/common/safe-globals'));

Callers 2

decodeResourceFunction · 0.85
requestVirtualUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected