Skip to content

Instantly share code, notes, and snippets.

@alanvitor
Last active November 7, 2021 14:41
Show Gist options
  • Save alanvitor/c1f17c4a3f01b6554a56ce7d314be74f to your computer and use it in GitHub Desktop.
Save alanvitor/c1f17c4a3f01b6554a56ce7d314be74f to your computer and use it in GitHub Desktop.

Revisions

  1. Alan renamed this gist Nov 7, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt → snippets.js
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@
    // Generally, run in browser's console.

    // re-enable paste in forms
    document.addEventListener('paste', e => e.stopImmediatePropagation(), true);
  2. Alan created this gist Nov 7, 2021.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    // re-enable paste in forms
    document.addEventListener('paste', e => e.stopImmediatePropagation(), true);