-
-
Save felipepodesta/0315cb25582daa11517eac87f9a933dc to your computer and use it in GitHub Desktop.
disable webpage lock
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
<!-- | |
disable web page locks, | |
for chrome, get extesion: https://chrome.google.com/webstore/detail/personalized-web/plcnnpdmhobdfbponjpedobekiogmbco | |
and add code below | |
--> | |
<style type="text/css"> | |
* { | |
-moz-user-select: text !important; | |
-webkit-user-select:auto !important; | |
} | |
</style> | |
<script type="text/javascript"> | |
document.body.onkeypress = function (){return true;} | |
document.body.onselectstart = function (){return true;} | |
document.body.onmousedown = function (){return true;} | |
document.body.onselectstart = function (){return true;} | |
document.oncontextmenu = function() { return true; } | |
//document.boby.ondragstart = function() { return true; } | |
//console.log('adison, body'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment