Disabling copy-paste on website credit-card fields. Who thought that was a good idea? Everybody, apparently. #dislike
Comments are closed.
IndieWeb POSSE for little things from Wordpress
Disabling copy-paste on website credit-card fields. Who thought that was a good idea? Everybody, apparently. #dislike
Comments are closed.
Ugh. Anti-pattern. Does the X middle-click thing work? That uses a different mechanism than copy-paste and may just be viewed by the input as keystrokes.
Of course if you’re running Windows or Mac you don’t have that feature…
I tried clicking with the middle finger. That didn’t work but it was mildly satisfying.
You clearly lack sufficient buttons on your mouse.
I especially love it when they do it to password fields – I’m looking at you H&R Block…
How do they actually do this?
$(document).ready(function(){
$(‘#txtInput’).bind(“paste”,function(e) {
e.preventDefault();
});
});
Which is to say, easily overridable at the client – so it won’t even prevent the people they want to or think they want to stop.
Grease Monkey script, please, to override that `preventDefault` implementation? Could it be done? (I’m not a Javascript guy)
I don’t greasemonkey. maybe this still works? http://superuser.com/questions/23027/greasemonkey-script-or-firefox-extension-to-stop-sites-from-disabling-copy-pas
Îñöxëñt Åmír liked this on Facebook.