try
U='https://'+(prompt`PDS`||'bsky.social')+'/xrpc/'
for ppl who are on different PDSs !
123456789101112131415<meta charset=utf-8><button onclick=P()>✍</button><button onclick=K()>♥</button><pre id=f><script>U='https://bsky.social/xrpc/'H={'content-type':'application/json'}x=r=>r.json()p=(u,d)=>fetch(U+u,{method:'post',headers:H,body:JSON.stringify(d)}).then(x)c=(t,r)=>p('com.atproto.repo.createRecord',{repo:S.did,collection:'app.bsky.feed.'+t,record:{...r,createdAt:new Date}}).then(T)L=p('com.atproto.server.createSession',{identifier:prompt`@`,password:prompt`🔑`}).then(s=>(H.authorization='Bearer '+s.accessJwt,S=s))T=_=>L.then(_=>fetch(U+'app.bsky.feed.getTimeline',{headers:H}).then(x)).then(d=>f.textContent=(F=d.feed).map((v,i)=>i+' @'+v.post.author.handle+``+v.post.record.text).join`
`)P=_=>c('post',{text:prompt`✍`})K=_=>c('like',{subject:{uri:(q=F[prompt`♥#`].post).uri,cid:q.cid}})T(setInterval(T,3e4))</script>try
U='https://'+(prompt`PDS`||'bsky.social')+'/xrpc/'
for ppl who are on different PDSs !
I just learned about tagged template literals from this, fascinating that that works.
¿Cómo lo descargo?