Skip to content

Instantly share code, notes, and snippets.

@oflow
Last active July 12, 2018 15:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oflow/b5d0b379ff46034be12554065efaadde to your computer and use it in GitHub Desktop.
Save oflow/b5d0b379ff46034be12554065efaadde to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Fuck you <INPUT onpaste="return false">
// @description 貼り付け禁止すんな殺すぞ!
// @include https://*
// ==/UserScript==
/* https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation */
document.addEventListener('paste', event => event.stopImmediatePropagation(), true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment