MCPcopy
hub / github.com/Tampermonkey/tampermonkey / modifyNativeScriptOption

Function modifyNativeScriptOption

src/options.js:2644–2661  ·  view source on GitHub ↗
(nid, id, value, reload)

Source from the content-addressed store, hash-verified

2642};
2643
2644var modifyNativeScriptOption = function(nid, id, value, reload) {
2645 if (V) console.log("run modifyNativeScriptOption");
2646 if (reload === undefined) reload = true;
2647 try {
2648 var s = { method: "modifyNativeScript", nid: nid, actionid: id, value: value, reload: reload };
2649
2650 if (V) console.log("modifyNativeScriptOption sendReq");
2651 chrome.extension.sendMessage(s,
2652 function(response) {
2653 if (response.items) {
2654 scheduleReCreate(response.items, name && true);
2655 }
2656 });
2657 Please.wait(I18N.getMessage("Please_wait___"));
2658 } catch (e) {
2659 console.log("mSo: " + e.message);
2660 }
2661};
2662
2663var runScriptUpdates = function(id, cb) {
2664 try {

Callers 2

createScriptItemFunction · 0.85
createEnableImageTDFunction · 0.85

Calls 1

scheduleReCreateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…