Created
January 25, 2024 22:54
-
-
Save elliotberry/fdecf3114b8a5e7ffc9c5681b41fd17e to your computer and use it in GitHub Desktop.
Userscript: allow me to paste or i will find you and take my revenge
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
// ==UserScript== | |
// @name allow me to paste or i will find you and take my revenge: the userscript | |
// @namespace Violentmonkey Scripts | |
// @match *://*/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 10/4/2023, 11:43:04 PM | |
// ==/UserScript== | |
const forceBrowserDefault = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('copy', forceBrowserDefault, true); | |
document.addEventListener('cut', forceBrowserDefault, true); | |
document.addEventListener('paste', forceBrowserDefault, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment