I recently encountered a website that abuses the debugger;
functionality to prevent effective use of the F12 developer tools. It calls debugger;
in several setInterval
and all over the place in functions.
Then they have timing tracking variables that terminate the website functionality if the debugger is stopped at a breakpoint for a few seconds..
Is there a way to switch off this functionality and only have the debugger break where I ask? (via breakpoint)
I've been thinking that something like
window.debugger = "function() return 0;" ;
would work, but it didnt :'(