javascript:void(document.documentElement.addEventListener('keydown',e=>e.keyCode==9&&e.stopPropagation(),true),document.documentElement.addEventListener('copy',e=>e.stopPropagation(),true),document.documentElement.addEventListener('paste',e=>e.stopPropagation(),true))
You just improved my day.
Thanks!
This has been a greatly appreciated plugin for these scenarios (it's on Firefox as well)
…though not as annoying as sites that don’t let you copy / paste into their login fields.
; Type in the clipboard
^!v::
MyClip = %clipboard%
StringReplace, MyClip, MyClip, `r, , All
SendRaw %MyClip%
return
So I can hit Ctrl-Alt-V and have it type in whatever's in my clipboard. I use it to scrub the text and deal with stupid sites and forms that don't allow paste. I also have a variant that adds a Sleep so I can do the same thing when something like RDP takes control.AHK has a v2 that attempts to clean up its scripting language, but it's been in beta for a long time.
Now I need to drag my tab to another window and type it out (twice) and then read and confirm it. If I'm on mobile - forget it.
I'm far more likely to get my account number _and_ confirmation wrong if I type them rather than copy/pasting them in from my bank's site.
about:config
dom.event.clipboardevents.enabled = falsehttps://utcc.utoronto.ca/~cks/space/blog/web/FirefoxClipboar...
Alternatively, my password manager does have a decent "autotype" tool when all else fails.
$0.value = "asd";
instead of finding the onpaste event.