Skip to content

Instantly share code, notes, and snippets.

@adison
Created April 13, 2014 15:40
Show Gist options
  • Save adison/10589168 to your computer and use it in GitHub Desktop.
Save adison/10589168 to your computer and use it in GitHub Desktop.
disable webpage lock
<!--
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