javascript:(async()=>{const e=await fetch("/api/auth/session").then(e=>e.json());if(!e?.accessToken)return alert("%E2%9D%8C Nejsem p%C5%99ihl%C3%A1%C5%A1en %E2%80%93 token chyb%C3%AD!");const t=e.accessToken,n=100;let o=0,a=[];for(;;){const e=await fetch(`/backend-api/conversations?offset=${o}&limit=${n}`,{headers:{Authorization:`Bearer ${t}`}}).then(e=>e.json());if(a.push(...e.items),o+=n,a.length>=e.total)break}const r=[];for(const e of a){const n=await fetch(`/backend-api/conversation/${e.id}`,{headers:{Authorization:`Bearer ${t}`}}).then(e=>e.json());r.push({id:e.id,title:e.title||"(bez n%C3%A1zvu)",create_time:e.create_time,mapping:n.mapping})}const i=new Blob([JSON.stringify({exported_at:new Date(),conversations:r},null,2)],{type:"application/json"}),c=Object.assign(document.createElement("a"),{href:URL.createObjectURL(i),download:`chatgpt_export_${new Date().toISOString().slice(0,10)}.json`});document.body.appendChild(c),c.click(),c.remove(),alert(`%E2%9C%85 Export hotov! Sta%C5%BEeno ${r.length} konverzac%C3%AD.`)})();