Skip to content

Instantly share code, notes, and snippets.

@LukeberryPi
Created March 9, 2024 22:01
Show Gist options
  • Save LukeberryPi/9fd1ce508f5f2edf962ff73afc643a5f to your computer and use it in GitHub Desktop.
Save LukeberryPi/9fd1ce508f5f2edf962ff73afc643a5f to your computer and use it in GitHub Desktop.
enable copy and past on any website
javascript:(function(){
allowCopyAndPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowCopyAndPaste, true);
document.addEventListener('paste', allowCopyAndPaste, true);
document.addEventListener('onpaste', allowCopyAndPaste, true);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment