Could you explain what electron offers here over for example a browser plugin? I'm not that familiar with limitations of WebExtension APIs
It looks like an interesting project but only for a few selected sites. For more random browsing I believe I would be too security conscious (https://electronjs.org/docs/tutorial/security) to allow it
Might be unlikely that some random script on a random site will target Electron but you never know