Skip to content

Instantly share code, notes, and snippets.

View Gerhut's full-sized avatar
😷
Working from home

George Cheng Gerhut

😷
Working from home
View GitHub Profile
@victorcastelan
victorcastelan / noJS
Created August 10, 2014 04:21
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 );
};