title: Why is console.log an empty function on some sites in Chrome?
body: <p>Go to Twitter's login page and type the following in the console:</p>
  <pre><code>window.addEventListener('keypress', function(e){console.log('hello')}, true)
  </code></pre>
  <p>(NOTE: how the third parameter is set to <code>true</code> which enables event capture. This causes events to be intercepted first by the window before being consumed by a child element.)</p>
  <p>Try pressing some keys. Notice how <code>hello</code> isn't output to the console. Adding an event listener for <code>keydown</code> or <code>keyup</code> doesn't change anything.</p>
  <p><code>hello</code> will get output on most websites, but not on sites like Twitter or Gmail.</p>
  <p>Why? What's stopping the event listener?</p>
  <p>EDIT: Seems to work as expected on Firefox. But not Chrome. Why isn't Chrome firing the event listener as expected?</p>
  <p>EDIT 2: As deduced by a few people below, <code>console.log</code> is an empty function on Chrome for sites like Twitter and Gmail. Why is that?</p>