2 ms·
I’m a fan of the extension ‘Don’t f** with paste’
by simonjgreen 3y ago
I’m a fan of the extension ‘Don’t f** with paste’
- gruez 3y agoI don't often see websites blocking paste on OTP code fields. What I do see often is websites breaking up the OTP field into n separate input fields, and having some code that auto-switches between the input fields as you type them. However, the auto-switching code doesn't handle pastes, so if you try to paste the entire code only the first digit gets entered. ‘Don’t f* with paste’ doesn't help with that.
- OJFord 3y agoUgh yeah, honestly if paste is disabled because that was the most effort they were going to put in to 'fixing' that I'll excuse it. Better to not even appear briefly like it might work!
- G1N 3y agoI’ve to do this with OTP codes at work as well. Reimplementing paste here I’d say is pretty trivial (though you have to add Yet Another Event Listener) but I’d agree with the general sentiment here to just not overcomplicate it at all if possible
- cgriswald 3y agoThese are also terrible if you need to go back because you mistyped. Shift+Tab brings your cursor back to correct it but their code pushes the cursor right back into the next empty box. (And they do this with a lot more than just OTP.)
- aitchnyu 3y agoI recently learned we can drag password from any text or Bitwarden to the password fields without triggering paste event.
- FabHK 3y agoFor Safari on iOS and macOS (and some other browsers on the Mac), there's the excellent (and similarly well named) StopTheMadness extension. https://underpassapp.com/StopTheMadness/ https://underpassapp.com/StopTheMadness/