# Suno diagnostika

Snippet z terminálu sa pri kopírovaní rozbíjal (zjedené spätné lomky, zalomené riadky). Tu je celý.

Postup: na suno.com pusti hotovú pieseň, F12 → Console. Najprv vymaž konzolu (Ctrl+L), potom vlož kód a Enter. Výsledok sa skopíruje do schránky, vlož ho do chatu. Nič nesťahuje ani nemení.

```js
;(async()=>{
 const els=[...document.querySelectorAll('audio,video')].map(e=>({src:e.currentSrc||e.src,dur:e.duration}));
 const re=/[.](mp3|m4a|m3u8|ts|aac|wav|webm|opus)([?]|$)|audio|stream/i;
 const res=performance.getEntriesByType('resource').map(e=>e.name).filter(u=>re.test(u)).slice(-15);
 const out={els,res,tries:[]};
 for(const u of [...new Set([...els.map(e=>e.src),...res])].filter(u=>u&&!u.startsWith('blob:')).slice(0,6))
  for(const cred of ['include','omit'])
   try{const r=await fetch(u,{credentials:cred});out.tries.push({u:u.slice(0,140),cred,st:r.status,ct:r.headers.get('content-type'),len:r.headers.get('content-length')})}
   catch(e){out.tries.push({u:u.slice(0,140),cred,err:String(e)})}
 copy(JSON.stringify(out,null,1));console.log(out,'-> skopirovane do schranky');
})();
```
