79766433

Date: 2025-09-16 15:50:19
Score: 1
Natty:
Report link

I am not the author of this snippet, but I found it useful (tested on Chrome and Safari):

javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 

Original: https://gist.github.com/Gustavo-Kuze/32959786ce55b2c3751629e40c75c935

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chicodelarose