Skip to content

Instantly share code, notes, and snippets.

@yungookim
Created March 6, 2014 17:24
Show Gist options
  • Save yungookim/9394810 to your computer and use it in GitHub Desktop.
Save yungookim/9394810 to your computer and use it in GitHub Desktop.
Disable user's Javascript execution from console
(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$$) {
}
})();
@yungookim
Copy link
Author

Source code from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment