How to disable chrome alert notification?
<p>I need to turn alert notification off by my extension. The alert function is a javascript built-in function and i override it like below in content script but it still works.</p>

<p>content script:</p>

<pre><code>window.alert = function(){}
</code></pre>

<p>It does not turn it off. The problem is realy simple but it does not work and i am going crazy :)</p>

<p>manifest.json:</p>

<pre><code>"content_scripts": [
    {
      "js": [ "assets/js/jquery-1.12.4.min.js", "assets/js/common.js", "assets/js/handlers.js" ],
      "matches": [ "http://*/*", "https://*/*" ],
      "run_at": "document_start"
    }
  ],
</code></pre>

<p>handler.js:</p>

<pre><code>window.alert = function (msg) {
    debugger;
    console.log(msg);
}
</code></pre>