Skip to content

Instantly share code, notes, and snippets.

@ruucm
Created April 28, 2020 04:53
Show Gist options
  • Save ruucm/e77910b231f68d8f6fd089e0efe749da to your computer and use it in GitHub Desktop.
Save ruucm/e77910b231f68d8f6fd089e0efe749da to your computer and use it in GitHub Desktop.
document.oncontextmenu = new Function("return false");
document.ondragstart = new Function("return false");
document.onselectstart = new Function("return false");
document.body.style.MozUserSelect = "none";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment