window.onkeydown = window.onkeyup=window.onkeypress = function(event){
if(event.keyCode==123){
event.prevnentDefault()
window.event.returnValue=false
}
}
window.oncontextmenu = function(event){
event.preventDefault()
return false
}
function check_debug(){
let other_width = 110
let width = Math.abs(window.innerWidth - window.outerWidth) - other_width
let height = Math.abs(window.innerHeight - window.outerHeight) - other_width
if( width + height > 0){
while(true){
debugger
}
}
}
window.setInterval(check_debug, 500)
禁止打开浏览器控制台
最新推荐文章于 2024-01-23 08:54:53 发布