There's another thingy at https://github.com/nostrband/nostr-login
I see your little thingy here https://github.com/fiatjaf/window.nostr.js
I don't know why you didn't bother to mention it
Discussion
I tried this and I like it.
Is it possible to remove the read-only option?
There are some applications I am thinking of where you need everyone to read and write, not just read.
Oh yeah I need to be able to select available modes myself too, will ping you when it's ready.