Wednesday, April 13, 2022

Website confirmation field paste-block script

 Drop this into the dev console using F12.


====================================================

var allowPaste = function(e){

  e.stopImmediatePropagation();

  return true;

};

document.addEventListener('paste', allowPaste, true);

====================================================


If you are a web dev and you block pasting, you are an arsehole.

No comments:

Post a Comment

Please be aware that all comments are moderated so if you're a scumbag spammer then I suggest not wasting your time. Your spam will not be seen by anyone.

Note: Only a member of this blog may post a comment.