emersion / passwordmaker

PasswordMaker powered by WebExtension
MIT License
15 stars 4 forks source link

Context menu item #14

Open NoelLH opened 6 years ago

NoelLH commented 6 years ago

It would be cool if, when the master password is available from memory or disk, there was a context menu item you could use to directly fill a password in a web site's password field.

I've been playing around trying to do this a little but I'm new to WebExtensions and struggling. Adding a context menu item and replacing the active form field with some arbitrary text is easy. But I'm struggling to include the logic needed to do real password generation, because both background.js and a content script seem unable to use require() calls, at least in Firefox.

I'm therefore struggling to see how I can get the logic we need into the code this menu item executes, without copying the code of every library needed to make it work. Any ideas welcome!

emersion commented 6 years ago

You need to include the js/passwordmaker.js file somehow