3 ms·
I do this on quite a few sites. Most of the easy ones have an easy to find onpaste event wired in the DOM and it's a simple delete. I feel like there are so few
by WorldMaker 5y ago
I do this on quite a few sites. Most of the easy ones have an easy to find onpaste event wired in the DOM and it's a simple delete. I feel like there are so few legitimate uses of onpaste and the browser should have an easy override that if I ctrl+v three times in quick succession or something like that it ignores or disables onpaste events.
Alternatively, my password manager does have a decent "autotype" tool when all else fails.
- Hamuko 5y agoI find it easier just to select the DOM element for the field and do $0.value = "asd"; instead of finding the onpaste event.
- WorldMaker 5y agoWhen the onpaste is easy to spot it's one key (Delete) after selecting that attribute or event versus a minimum of around 14 give or take keys depending on how good your console autocompletion is. When it is not easy to find, yeah I next try just setting the DOM value.