MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / niStoreSet

Function niStoreSet

nodeImage.js:77–81  ·  view source on GitHub ↗

写入GM/本地存储值

(key, val)

Source from the content-addressed store, hash-verified

75 }
76 /** 写入GM/本地存储值 */
77 function niStoreSet(key, val) {
78 var json = JSON.stringify(val);
79 try { localStorage.setItem(key, json); } catch (e) {}
80 try { if (typeof GM_setValue === 'function') GM_setValue(key, val); } catch (e2) {}
81 }
82
83 /** 获取所有分类 [{id,name}] */
84 function niGetCategories() {

Callers 4

niSaveCategoriesFunction · 0.85
niNewCatIdFunction · 0.85
niSaveImgCatMapFunction · 0.85
niSavePinnedIdsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected