You are much better off resolving a two-factor authentication security problem. Hacking a browser will (a) work only in the short term (password managers get better at handling such approaches), and (b) often lead to accessibility issues that can cost you a lot more users than your fear of a legitimate password leak. If you work in a large organization, assistive technology users who have enough time to work with your browsers can finish filing a lawsuit. (I don’t speak with this hack, in particular, but, generally speaking, working with a browser harms assistive technologies)
Two-factor authentication, even a sloppy implementation that just asks for something like a middle name and then sets a cookie ("this browser is now allowed to access without 2FA for a month"), makes it extremely difficult for a random hacker to gain unauthorized access to an account and Improve the environment for users, especially those using screen readers or other assistive technologies.
Disabling password managers, on the other hand, leads to a light password, not strong passwords. Using LastPass or the like, I can have a 24-character password (and LastPass, maybe fill in the fields that you are trying to protect with hacks, fyi), which I would never hope to remember, and a different password for each site. When I have passwords that I need to remember, they tend to be two words strung together with a symbol such as "Dogs + Knife".
Nerdmaster
source share