title: Access Chrome unsafeWindow
body: <p><strong>Yes, you've seen this topic before.</strong> However, Chrome has closed one of the most common <em>ports</em> to use the <code>unsafeWindow</code> to use with Contents Script.</p>
  
  <pre><code>var unsafeWindow;
  (function() {
      var div = document.createElement("div");
      div.setAttribute("onclick", "return window");
      unsafeWindow = div.onclick();
  })();
  </code></pre>
  
  <p>Now <code>div.onclick</code> returns <em>null</em>.</p>
  
  <p><strong>My question is</strong>: is there another way to access the <code>unsafeWindow</code> via Contents Script, currently? For example, I would like to access the jQuery used by the page itself.</p>
  
  <pre><code>unsafeWindow.jQuery().jquery; // &lt;- 1.9.0
  </code></pre>