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

Function remove

src/syncinfo.js:302–310  ·  view source on GitHub ↗
(script, cb)

Source from the content-addressed store, hash-verified

300 };
301
302 var remove = function(script, cb) {
303 _syncObjects[script.id + scriptAppendix] = JSON.stringify({ url: script.url, options: { removed: getTime() } });
304 if (_syncTimeout) {
305 window.clearTimeout(_syncTimeout);
306 }
307
308 _syncTimeout = window.setTimeout(write, 3000);
309 if (cb) cb();
310 };
311
312 var reset = function(cb) {
313 var selfargs = arguments;

Callers 2

listenFunction · 0.85
background.jsFile · 0.85

Calls 2

getTimeFunction · 0.85
cbFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…