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

Function doit

src/background.js:3163–3178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3161 }
3162
3163 var doit = function() {
3164 storeScript(script.name, script);
3165 if (!oldscript || o.clean) storeScriptStorage(script.name, { ts: (new Date()).getTime() });
3166 if (!o.cb) {
3167 notifyOptionsTab();
3168 }
3169
3170 if (false) { // add user option
3171 var disableNative = function(item) {
3172 if (!item) return;
3173 console.log("bg: disable extension " + item.name);
3174 extensions.setEnabled(item, false);
3175 }
3176 extensions.getUserscriptByName(script.name, disableNative);
3177 }
3178 };
3179
3180 if (!o.ask ||
3181 (allowSilent && Config.values.notification_silentScriptUpdate)) {

Callers 1

addNewUserScriptFunction · 0.70

Calls 3

storeScriptFunction · 0.85
storeScriptStorageFunction · 0.85
notifyOptionsTabFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…