i wonder if we have any standard about what should be allowed in hashtags
iris renders
#iris-ipfs as hashtag, but primal shows #iris as hashtag and then -ipfs as text
how about this format?
hostr:p/12daa8df16d9a5d232c14601571a5bf155329a0725aa31af58e7826f8ebd6f1c/d/fileloader.html
well it doesnt
because brave has blocked this site
wtf
with brave, this should work:
ipfs://bafybeiaefunzf7j2fmduiowqa3wqbbikhi6vsuergvunw7jvtyq5pwp7/#/note1zmefkecr6twksx27q4k77n6lqd4rqr8g7s7ew2vrfa0zmrl9vamq4urr9v
maybe link like this:
hostr:a77ec9cc45b080cef42ffc2e2045e48dc97b2497aaf9a666b69782f8489f471b
so i intergrated hostr into #iris-ipfs
https://bafybeihypyqclc5spvhwazcm6vo542u3laprseoxiuvy36xthey5su2kny.ipfs.cf-ipfs.com
```js
function hostr_loader(){
let m = location.hash.match(/^#\/hostr\/(\S+)/)
if(m){
let id = m[1]
let s = new WebSocket("wss://relay.nostr.band")
s.onopen = () => {
s.send(JSON.stringify(["REQ","q",{"ids":[id]}]))
}
s.onmessage = e => {
s.close()
document.body.outerHTML = "
"let f = document.createElement("iframe")
console.log("data", JSON.parse(e.data)[2].content)
f.src = "data:text/html;base64," + btoa(JSON.parse(e.data)[2].content)
document.body.append(f)
}
}
}
hostr_loader()
```
we could use any nostr app as #hostr webhost https://iris.to/
just load content into iframe
it wont be able to access sensitive data like localStorage
url could be something like:
https://iris.to/hostrf2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6cc
which would execute code like following (where f.src would come from hostr note, we would convert hash "hostrf2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6cc" into hex and query from relay):
document.write("
"); f = document.createElement("iframe"); f.src = 'data:text/html;,'; document.body.append(f);also my name shows probably different for someone else
although quick test in incognito shows it still same
maybe its using entropy from public key, but different app might have different algorithm
im not sure if its good idea to generate names client side
my client side generated name is Square Gibbon, but you cannot use search to find my user, because the name is client side generated
now you can, because i said that name in this note, so you can find this note
took little bit time to propagate
https://bafybeiho75k2hmfqurz5yhiwq73kly3dqkgelgvdyh4stmqs3yvw3mnjza.ipfs.cf-ipfs.com/
also i enabled AcceleratedDHTClient in ~/.ipfs/config as recommended
fixed direct linking by changing to hash router
#iris #ipfs
this one works for viewing media
https://ferrolho.github.io/magnet-player/#da436f89ac77e2b47cc02b124b3cbfde7034d4b6