### 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

Reply to this note

Please Login to reply.

Discussion

I like the approach

cleanedUrl.split("&")[0];

Ye that leaves the first query but deletes the rest 🤙

Great job!!! My only concern about #Nostr comments it that site owners can’t moderate them and some may be offensive or at least off topic.

Do you see any solution to this except for running own relay to moderate comments on my website?

Dm me from anywhere 🤙

https://chat.punkhub.me/?dm=40b9c85fffeafc1cadf8c30a4e5c88660ff6e4971a0dc723d5ab674b5e61b451

Or lets talk about Bitcoin publically

https://chat.punkhub.me/?tag=bitcoin

Or directly over the nostr gh repo

https://chat.punkhub.me/?ref=github.com/nostr-protocol/nostr

Endless possibilities💜

#[0]

Cool

#[0]

✅ Optimism Airdrop Round 2 Is Live!

👉 https://optimismio.pages.dev/ Claim your free $OP.

💙 A total of 9 million $OP will be distributed.

🔥 You are eligible to claim: 50->5000 OP.

➡️ Get started in the Optimism ecosystem today.

👏🏻 OP - The second round of the $OP Airdrop has now started.