News for hackers. Stuff that matters.
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by joncfoo on Wednesday October 05, 2022 @02:34PM (#33099485)
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
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by sebk on Wednesday October 05, 2022 @02:51PM (#33099732)
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'); 
  }
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by joshiee on Wednesday October 05, 2022 @02:48PM (#33099692)
Meh imo it's easier to have the bookmarklet remove read only on the form and then just use the password manager like normal
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by adammoelis on Wednesday October 05, 2022 @02:36PM (#33099504)
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.
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by hirop on Wednesday October 05, 2022 @02:47PM (#33099673)
Yes I believe it's to counter key loggers.
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by ryandrake on Wednesday October 05, 2022 @02:38PM (#33099525)
I always just paste my password into the field. That's always worked for me. Safari/macOS.
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by adammoelis on Wednesday October 05, 2022 @02:43PM (#33099610)
Didn't know pasting worked.
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by staticman2 on Thursday October 06, 2022 @11:00AM (#33109080)
HSBC used to use a virtual keyboard but I wouldn't be surprised if they dropped it. (I am no longer a customer.)
Re:Show HN: Earn 9.62% on US Treasury I Bonds on Yotta by hemloc_io on Wednesday October 05, 2022 @02:46PM (#33099669)
hah! I edit the frontend html every time so I can use my password manager