I tried disabling the console but it didnt work in my chrome for some reason.
How does Facebook disable the browser's integrated Developer Tools?
Code
$(document).ready(function(){
with ((console && console._commandLineAPI) || {}) {
(function() {
try {
var $_console$$ = console;
Object.defineProperty(window, "console", {
get: function() {
if ($_console$$._commandLineAPI)
throw "Sorry, for security reasons, the script console is deactivated on netflix.com";
return $_console$$
},
set: function($val$$) {
$_console$$ = $val$$
}
})
} catch ($ignore$$) {
}
})();
}
});
function abs(){
return "Hey Its not Working";
}
When i run abs()
from console it shows me output Hey Its not Working
which means its not disabled. So am i doing something wrong ?