Code
Partikel
by Wudysoft
HTML
<script>
//Prevent copy paste via HTML attributes
var body = document.body;
body.setAttribute("oncopy", "return false");
body.setAttribute("oncut", "return false");
body.setAttribute("onpaste", "return false");
//This prevents the action of right clicking
//This is now pointless after what I implemented above
var preventRightClick = window.addEventListener("contextmenu", function(e) {
e.preventDefault();
alert("Gaboleh click, sorry");
});
//This prevents the Ctrl+C keyboard shortcut...
//Umm...ok...No it doesn't :-/
var preventCtrlC = window.addEventListener("keypress", function(e) {
var str;
for (i in e) {
str = str + i + ": " + e[i] + "<br />";
}
document.getElementById("innerContainer").innerHTML = str;
});
</script>