Created
July 23, 2021 07:31
-
-
Save emaV/8f21e0b5d7970507ee36753fe688d6ef to your computer and use it in GitHub Desktop.
Enable paste in Chrome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enable Paste in Chrome (ctrl-v) | |
// [How to Enable Pasting Text on Sites That Block It](https://www.howtogeek.com/251807/how-to-enable-pasting-text-on-sites-that-block-it/) | |
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