it can't work with a nip-07 extension because extenions can't talk to each other; the Highlighter extension would need to request a whole bunch of really messed up permissions that I would rather not request
especially if you consider that then that'd mean that every browser extension and app needs to do the same; either ask for a whole bunch of intrusive permissions ("modify every website you visit"!!!!) or as for you nsec (!!!)
I hope running an nsecbunker at home becomes so trivial that this will be the way-way-way preferred option
“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
Thread collapsed
Ok cool thanks for explaining. I’ll try again with nsecBunker. I’m comfortable using it, and used it to sign into the Nostur app with no issues, but for some reason I couldn’t seem to get it to work with the highlighter extension. I’ll try reinstalling the extension and using a new nsecBunker token. Maybe I entered something wrong.
LMK if it doesn't work! 🙏
Nsecbunker works like a charm, it looks like black magic 😄⚡
Thread collapsed
Thread collapsed
Thread collapsed