title: Chrome extension - retrieving global variable from webpage
body: <p>I am working on an extension for Chrome. I wish parse the content of the "original" Gmail message (the currently viewed message).</p>
  
  <p>I tried to utilize the jQuery.load() as follows</p>
  
  <pre><code>$(windows).load(function() { alert(GLOBALS); });
  </code></pre>
  
  <p>and place it at the content script, but it does not work either. I am using Chrome's developer tools, which returns the following error on the invocation of the <code>alert(GLOBALS);</code></p>
  
  <blockquote>
    <p>Uncaught ReferenceError: GLOBALS is not defined</p>
  </blockquote>
  
  <p>Although, when using the developers tools' console, typing into the console <code>GLOBALS</code> it returns an array. </p>
  
  <p>Any clue how to access the GLOBALS from the content script?</p>