Created
April 15, 2022 14:29
-
-
Save sekaiwish/faaf163d7125d457facc17860ce8c5c0 to your computer and use it in GitHub Desktop.
Prevent DevTools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function() { | |
var responseTime = 100; | |
var before = new Date().getTime(); | |
debugger; | |
var after = new Date().getTime(); | |
if (after - before > responseTime) { | |
document.body.innerHTML = ""; | |
location.reload(); | |
} | |
}, 50); | |
// One-liner | |
// setInterval(function(){var a=100;var b=new Date().getTime();debugger;var c=new Date().getTime();if(c-b>a){document.body.innerHTML="";location.reload();}},50); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment