Skip to content

Instantly share code, notes, and snippets.

@felipepodesta
Forked from adison/disable-lock.html
Created January 26, 2018 21:23
Show Gist options
  • Save felipepodesta/0315cb25582daa11517eac87f9a933dc to your computer and use it in GitHub Desktop.
Save felipepodesta/0315cb25582daa11517eac87f9a933dc 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