MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / load

Function load

src/content.js:319–325  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

317 }
318
319 var load = function(r) {
320 // TODO: Waaaaaaaaaaahhhhhhhhh, bypass special objects like ArrayBuffer, cause they are destroyed when sent by an event
321 var id = '__x__' + Math.floor ( Math.random() * 06121983 + 1 );
322 window[id] = r.response;
323 r.response = null;
324 tmCE.onConnectResponse(key, 0, responseId, JSON.stringify( { onLoad : true, response: r, r_id: id }));
325 };
326 var readystatechange = function(r) {
327 tmCE.onConnectResponse(key, 0, responseId, JSON.stringify( { onReadyStateChange : true, response: r }));
328 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…