MCPcopy Index your code
hub / github.com/Tampermonkey/tampermonkey / time

Function time

src/background.js:196–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 var time = function() {
197 r.script = mergeCludes(r.script);
198
199 if (processSource) {
200 var ss = { url: r.script.fileURL,
201 src: r.script.textContent,
202 ask: false,
203 cb : function() { /* done! */ },
204 hash: r.script.hash };
205 addNewUserScript(ss);
206 } else {
207 r.script.id = scriptParser.getScriptId(r.script.name);
208 storeScript(r.script.name, r.script, false);
209 }
210
211 check();
212 };
213 if (cb) {
214 running++;
215 window.setTimeout(time, 10);

Callers 1

wrapFunction · 0.85

Calls 4

mergeCludesFunction · 0.85
addNewUserScriptFunction · 0.85
storeScriptFunction · 0.85
checkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…