MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / doSet

Function doSet

example/tests/gm_value_test.js:146–150  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

144 });
145
146 async function doSet(v) {
147 await GM_setValue(myKey, v);
148 iLog(`✏️ Set <b>${escHtml(myKey)}</b> = <b>${escHtml(JSON.stringify(v))}</b>`, 'info');
149 await pushKV();
150 }
151
152 async function doDel() {
153 await GM_deleteValue(myKey);

Callers 1

gm_value_test.jsFile · 0.85

Calls 3

iLogFunction · 0.85
escHtmlFunction · 0.85
pushKVFunction · 0.85

Tested by

no test coverage detected