Skip to content

Instantly share code, notes, and snippets.

@geoffappleford
Created February 12, 2018 09:40
Show Gist options
  • Save geoffappleford/949f123b18d3358b07be1626ffce3a3b to your computer and use it in GitHub Desktop.
Save geoffappleford/949f123b18d3358b07be1626ffce3a3b to your computer and use it in GitHub Desktop.
Allow pasting on sites where blocked
var allowPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('paste', allowPaste, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment