title: Auto run script on page load with chrome extension
body: <p>How do I auto load script when a page loads?</p>
  
  <p>I have this extension source:</p>
  
  <pre><code>{ "browser_action" : { "default_icon" : "icon.png"},
    "description" : "Alert on Google Load",
    "icons" : { "128" : "icon.png" },
    "name" : "Auto alert",
    "version" : "1.0",
    "content_scripts": [
      {
        "matches": ["http://www.google*"],
        "js": ["myscript.js"],
        "run_at": ["document_end"]
      }
    ],
  }
  </code></pre>
  
  <p>Now myscript.js includes:</p>
  
  <pre><code>alert("hi")
  </code></pre>
  
  <p>But when i load google.com, nothing happens.</p>
  
  <p>thanks alot.</p>