How override eval function in javascript? - by ko1ik For example: (function() { var proxied = window.eval; window.eval = (function() { return proxied.apply(this, arguments); }); })(); But this code is not working. Read the article