“extenions can't talk to each other”
Extensions talk to the page. They can both listen for events and emit events on DOM objects.
One could use, say, the document object as a relay of sorts to publish and subscribe to custom events.
but I don't have access to window.nostr unless I request access to the main document, correct?
Right. I assumed you’d have access to the page in the context of an extension. I suppose one could write an extension that did not access the page contents, but then how would highlighting even work?
a context menu gives you precisely the selected text without ever touching the document 😀
"No access needed"


Got it, makes sense. But the extension can still make WebSocket connections?
Fascinating. I guess then my recommendation would be to have the highlighter extension post a draft highlight with a dedicated nsec. User can later review drafts and upgrade to first-class notes signing with NIP-07 extension. You see where I’m going with this?
Draft could be a DM from the highlighter to the user’s npub. Just brainstorming.
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed