Skip to content

Instantly share code, notes, and snippets.

@victorcastelan
Created August 10, 2014 04:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorcastelan/b103397cda62fe56221e to your computer and use it in GitHub Desktop.
Save victorcastelan/b103397cda62fe56221e to your computer and use it in GitHub Desktop.
disable JS
( function(){
var __x = Function.prototype.call;
Function.prototype.call = function( thisArg ){
if( arguments[1] && arguments[1].indexOf &&
arguments[1].indexOf( "with (__commandLineAPI" ) !== -1 ) {
throw "Sorry, Execution via Console has been disabled!";
}
__x.apply( this, arguments );
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment