Why Nostr? What is Njump?
2023-04-11 21:41:14

Gzuuus on Nostr: ### Hey Nostr! How's it going? I've been working on the nostrichat extension for ...


### Hey Nostr! How's it going?
I've been working on the nostrichat extension for Chrome and I have some exciting news.🔥
After noticing that my extension was not working on all pages due to CSP, I decided to give it a twist and now it has super powers.
I created a cloudflare worker that loads nostrichat on demand, so now you can even use it without installing the extension, more details below.
Now the extension also opens a new chat window every time you use it, so you can have multiple live chats on nostr at the same time, crazy right?

#### How to use the worker?
The worker url is chat.punkhub.me, so with that url and some hooks you can load nostrichat on demand.
These are the hooks you can use:
- ref: sets an 'r' tag inside the notes.
- e.g: `chat.punkhub.me/?ref=https://nostr.com/`.
- tag: sets an 't' tag inside the note.
- e.g: `chat.punkhub.me/?tag=bitcoin`
- relays: set the list of relays you connect to, if left empty it defaults to the list suggested by nostri.chat.
- e.g: `chat.punkhub.me/?relays=wss://nos.lol,wss://relay.snort.social`.
- dm: Set the chat to dm type and take a public key in HEX format as value.
- e.g: `chat.punkhub.me/?dm=40b9c85fffeafc1cadf8c30a4e5c88660ff6e4971a0dc723d5ab674b5e61b451`

Of course you can combine these hooks, e.g:
- `chat.punkhub.me/?ref=https://nostr.com/&tag=bitcoin&relays=wss://nos.lol`.

You can find all the code and details here https://github.com/gzuuus/nostrichat-extension
Author Public Key
npub1gzuushllat7pet0ccv9yuhygvc8ldeyhrgxuwg744dn5khnpk3gs3ea5ds