MCPcopy Create free account
hub / github.com/hoothin/UserScripts / checkJson

Function checkJson

RandomSexyPic/randomSexyPic.user.js:310–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 picUrls=data.match(urlReg);
309 }else{
310 let checkJson=obj=>{
311 for(let i in obj){
312 if(typeof obj[i] == "string"){
313 let pics=obj[i].match(urlReg);
314 if(pics)picUrls=picUrls.concat(pics);
315 }else checkJson(obj[i]);
316 }
317 };
318 checkJson(data);
319 }
320 if(picUrls){

Callers 1

parsePicsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected