/ JavaScript

JavaScript Magic method

close window if anyone try to open the development tool

  <script type="text/javascript">
    $(document).ready(function() {
      (function () {
        var re = /x/;
        console.log(re);
        re.toString = function () {
          window.close();
        };
      })();
    })
  </script>