Hacker News new | ask | show | jobs
by joncfoo 1345 days ago
The virtual keyboard on the Treasury Direct login page is terrible, especially for those of us who use a password manager. I use the following bookmarklet that "types" each letter via the exposed JavaScript function on the page itself.

  javascript:prompt('treasurydirect.gov password please').split('').forEach(PasswordVK)
easy-peasy
4 comments

Similarly, I have a Greasemonkey userscript to remove the readonly attribute for the password input form so my password manager works:

  for (const e of document.getElementsByClassName("pwordinput")) { 
    e.removeAttribute('readonly'); 
  }
Meh imo it's easier to have the bookmarklet remove read only on the form and then just use the password manager like normal
Does any other website in the world use a virtual keyboard like that? I don't really understand why they do it. To prevent keystroke tracking I guess? It's bizarre.
I always just paste my password into the field. That's always worked for me. Safari/macOS.
Didn't know pasting worked.
Yes I believe it's to counter key loggers.
HSBC used to use a virtual keyboard but I wouldn't be surprised if they dropped it. (I am no longer a customer.)
hah! I edit the frontend html every time so I can use my password manager