Created
April 17, 2013 02:14
-
-
Save thirdj/5401285 to your computer and use it in GitHub Desktop.
keyboard, mouse block
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
| !function mouseKeyboardBlock() { | |
| document.oncontextmenu = new Function('return false'); | |
| document.onselectstart = new Function('return false'); | |
| document.ondragstart = new Function('return false'); | |
| document.ondragenter = new Function('return false'); | |
| document.ondragover = new Function('return false'); | |
| document.ondrop = new Function('return false'); | |
| document.onkeydown = new Function('return false'); | |
| }(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment