Skip to content

Instantly share code, notes, and snippets.

@danieldogeanu
Last active September 14, 2023 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldogeanu/9998253fc80dcf0ff16a57aefb71a3b6 to your computer and use it in GitHub Desktop.
Save danieldogeanu/9998253fc80dcf0ff16a57aefb71a3b6 to your computer and use it in GitHub Desktop.
Re-enable pasting on input fields.

To re-enable pasting for input fields where paste is disabled, open the console and paste the following:

document.addEventListener('paste', (e) => e.stopImmediatePropagation(), true);

Enjoy! 😊

If this was useful, you can buy me a coffee here. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment