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

Function modifyScriptOptions

src/action.js:248–267  ·  view source on GitHub ↗
(name, id, value)

Source from the content-addressed store, hash-verified

246};
247
248var modifyScriptOptions = function(name, id, value) {
249 try {
250 var s = { method: "modifyScriptOptions", name: name };
251 if (id && id != '') s[id] = value;
252 chrome.extension.sendMessage(s,
253 function(response) {
254 if (response) {
255 if (response.i18n) {
256 I18N.setLocale(response.i18n);
257 }
258 if (response.items) {
259 createActionsMenu(response.items);
260 }
261 }
262 });
263 document.getElementById('action').innerHTML = I18N.getMessage("Please_ wait___");
264 } catch (e) {
265 console.log("mSo: " + e.message);
266 }
267}
268
269chrome.extension.onMessage.addListener(
270 function(request, sender, sendResponse) {

Callers 3

ocFunction · 0.70
elFunction · 0.70
sucFunction · 0.70

Calls 1

createActionsMenuFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…