but I don't have access to window.nostr unless I request access to the main document, correct?
Discussion
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?
yup
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.