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

Function parseLastMsg

nodeImage.js:320–327  ·  view source on GitHub ↗
(text, asJson)

Source from the content-addressed store, hash-verified

318 }
319 var refWww = WWW_BASE + '/';
320 function parseLastMsg(text, asJson) {
321 if (!asJson || !text) return '';
322 try {
323 var lb = JSON.parse(text);
324 if (lb && lb.message) return String(lb.message);
325 } catch (e) {}
326 return '';
327 }
328 function tryFetch(url, asJson, next) {
329 GM_xmlhttpRequest({
330 method: 'GET',

Callers 1

tryFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected