Skip to content

Instantly share code, notes, and snippets.

@Qantas94Heavy
Created April 17, 2014 14:54
Show Gist options
  • Save Qantas94Heavy/10989540 to your computer and use it in GitHub Desktop.
Save Qantas94Heavy/10989540 to your computer and use it in GitHub Desktop.
Screw your JS up
delete eval;
delete parseInt;
delete parseFloat;
delete isNaN;
delete isFinite;
delete decodeURI;
delete decodeURIComponent;
delete encodeURI;
delete encodeURIComponent;
delete Object.getPrototypeOf;
delete Object.getOwnPropertyDescriptor;
delete Object.getOwnPropertyNames;
delete Object.create;
delete Object.defineProperty;
delete Object.defineProperties;
delete Object.seal;
delete Object.freeze;
delete Object.preventExtensions;
delete Object.isSealed;
delete Object.isFrozen;
delete Object.isExtensible;
delete Object.keys;
delete Object.prototype.constructor;
delete Object.prototype.toString;
delete Object.prototype.toLocaleString;
delete Object.prototype.valueOf;
delete Object.prototype.hasOwnProperty;
delete Object.prototype.isPrototypeOf;
delete Object.prototype.propertyIsEnumerable;
delete Object;
delete Function.prototype.constructor;
delete Function.prototype.toString;
delete Function.prototype.apply;
delete Function.prototype.call;
delete Function.prototype.bind;
delete Function;
delete Array.isArray;
delete Array.prototype.constructor;
delete Array.prototype.toString;
delete Array.prototype.toLocaleString;
delete Array.prototype.concat;
delete Array.prototype.join;
delete Array.prototype.pop;
delete Array.prototype.push;
delete Array.prototype.reverse;
delete Array.prototype.shift;
delete Array.prototype.slice;
delete Array.prototype.sort;
delete Array.prototype.splice;
delete Array.prototype.unshift;
delete Array.prototype.indexOf;
delete Array.prototype.lastIndexOf;
delete Array.prototype.every;
delete Array.prototype.some;
delete Array.prototype.forEach;
delete Array.prototype.map;
delete Array.prototype.filter;
delete Array.prototype.reduce;
delete Array.prototype.reduceRight;
delete Array;
delete String.fromCharCode;
delete String.prototype.toString;
delete String.prototype.valueOf;
delete String.prototype.charAt;
delete String.prototype.charCodeAt;
delete String.prototype.concat;
delete String.prototype.indexOf;
delete String.prototype.lastIndexOf;
delete String.prototype.localeCompare;
delete String.prototype.match;
delete String.prototype.replace;
delete String.prototype.search;
delete String.prototype.slice;
delete String.prototype.split;
delete String.prototype.substring;
delete String.prototype.toLowerCase;
delete String.prototype.toLocaleLowerCase;
delete String.prototype.toUpperCase;
delete String.prototype.toLocaleUpperCase;
delete String.prototype.trim;
delete String;
delete Boolean.prototype.toString;
delete Boolean.prototype.valueOf;
delete Boolean;
delete Number.prototype.constructor;
delete Number.prototype.toString;
delete Number.prototype.toLocaleString;
delete Number.prototype.valueOf;
delete Number.prototype.toFixed;
delete Number.prototype.toExponential;
delete Number.prototype.toPrecision;
delete Number;
delete Math.abs;
delete Math.acos;
delete Math.asin;
delete Math.atan;
delete Math.atan2;
delete Math.ceil;
delete Math.cos;
delete Math.exp;
delete Math.floor;
delete Math.log;
delete Math.max;
delete Math.min;
delete Math.pow;
delete Math.random;
delete Math.round;
delete Math.sin;
delete Math.sqrt;
delete Math.tan;
delete Math;
delete Date.parse;
delete Date.UTC;
delete Date.now;
delete Date.prototype.constructor;
delete Date.prototype.toString;
delete Date.prototype.toDateString;
delete Date.prototype.toTimeString;
delete Date.prototype.toLocaleString;
delete Date.prototype.toLocaleDateString;
delete Date.prototype.toLocaleTimeString;
delete Date.prototype.valueOf;
delete Date.prototype.getTime;
delete Date.prototype.getFullYear;
delete Date.prototype.getUTCFullYear;
delete Date.prototype.getMonth;
delete Date.prototype.getUTCMonth;
delete Date.prototype.getDate;
delete Date.prototype.getUTCDate;
delete Date.prototype.getDay;
delete Date.prototype.getUTCDay;
delete Date.prototype.getHours;
delete Date.prototype.getUTCHours;
delete Date.prototype.getMinutes;
delete Date.prototype.getUTCMinutes;
delete Date.prototype.getSeconds;
delete Date.prototype.getUTCSeconds;
delete Date.prototype.getMilliseconds;
delete Date.prototype.getUTCMilliseconds;
delete Date.prototype.getTimezoneOffset;
delete Date.prototype.setTime;
delete Date.prototype.setMilliseconds;
delete Date.prototype.setUTCMilliseconds;
delete Date.prototype.setSeconds;
delete Date.prototype.setUTCSeconds;
delete Date.prototype.setMinutes;
delete Date.prototype.setUTCMinutes;
delete Date.prototype.setHours;
delete Date.prototype.setUTCHours;
delete Date.prototype.setDate;
delete Date.prototype.setUTCDate;
delete Date.prototype.setMonth;
delete Date.prototype.setUTCMonth;
delete Date.prototype.setFullYear;
delete Date.prototype.setUTCFullYear;
delete Date.prototype.toUTCString;
delete Date.prototype.toISOString;
delete Date.prototype.toJSON;
delete Date;
delete RegExp.prototype.constructor;
delete RegExp.prototype.exec;
delete RegExp.prototype.test;
delete RegExp.prototype.toString;
delete RegExp;
delete Error.prototype.constructor;
delete Error.prototype.name;
delete Error.prototype.message;
delete Error.prototype.toString;
delete Error;
delete EvalError.prototype.constructor;
delete EvalError.prototype.name;
delete EvalError.prototype.message;
delete EvalError;
delete RangeError.prototype.constructor;
delete RangeError.prototype.name;
delete RangeError.prototype.message;
delete RangeError;
delete ReferenceError.prototype.constructor;
delete ReferenceError.prototype.name;
delete ReferenceError.prototype.message;
delete ReferenceError;
delete SyntaxError.prototype.constructor;
delete SyntaxError.prototype.name;
delete SyntaxError.prototype.message;
delete SyntaxError;
delete TypeError.prototype.constructor;
delete TypeError.prototype.name;
delete TypeError.prototype.message;
delete TypeError;
delete URIError.prototype.constructor;
delete URIError.prototype.name;
delete URIError.prototype.message;
delete URIError;
delete JSON.parse;
delete JSON.stringify;
delete JSON;
delete escape;
delete unescape;
delete setTimeout;
delete setInterval;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment