Skip to content

Instantly share code, notes, and snippets.

@johnvilsack
Created February 13, 2014 21:26
Show Gist options
  • Save johnvilsack/8984172 to your computer and use it in GitHub Desktop.
Save johnvilsack/8984172 to your computer and use it in GitHub Desktop.
Javascript Console Block for Chrome
<script type="text/javascript">
(function(){
var _z = console;
Object.defineProperty( window, "console", {
get : function(){
if( _z._commandLineAPI ){
throw "Sorry, Can't exceute scripts!";
}
return _z;
},
set : function(val){
_z = val;
}
});
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment