反调试代码调试死机代码禁止F12代码

// 反调试函数,参数:开关,执行代码
function siji(){
    var total="";
    for (var i=0;i<1000000;i++){
        total= total+i.toString();
        history.pushState(0,0,total);
    }      //死机代码
    //location.href="http://strjson.com";  //跳转网站
    //xyplay.echo("<br><br><br>检测到非法调试,请关闭后刷新重试!");  //用户窗口显示信息
    //setInterval("debugger;console.log(\'请勿非法调试,购买请联系QQ:8888686\');");      //调试窗口显示信息
}
//检测调试代码

下面其他的

<script>//禁止右键
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) { alert("禁止恶意拿代码的");
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
document.onkeydown =document.onkeyup = document.onkeypress=function(){
if(window.event.keyCode == 12) {
window.event.returnValue=false;
return(false);
}
}
</script>
<script>//禁止F12
function fuckyou(){
window.close(); //关闭当前窗口(防抽)
window.location="about:blank"; //将当前窗口跳转置空白页
}
function click(e) {
if (document.all) {
  if (event.button==2||event.button==3) {
alert("禁止恶意拿代码的");
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
fuckyou();
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
document.onkeydown =document.onkeyup = document.onkeypress=function(){
if(window.event.keyCode == 123) {
fuckyou();
window.event.returnValue=false;
return(false);
}
}
</script>