title: How to Inject content script when page loads while having a popup page?
body: <p>Im trying to have my code to be injected using the content script method for google chrome extensions. This only works when my manifest does not have a Popup page and my background.html has this:</p>
  
  <pre><code>chrome.browserAction.onClicked.addListener(function(tab) {
  chrome.tabs.executeScript(null, { file: "jquery.js" }, function() {
  chrome.tabs.executeScript(null, { file: "content_script.js" });
  });
  });
  </code></pre>
  
  <p>How can I have this code be triggered every time a new page has been loaded in chrome while having a PoPup page? because so far the only way that it works is when I click the browser action button of the extension.</p>
  
  <p>Also in my content script section of manifest I have included all this:</p>
  
  <pre><code>"content_scripts": [
  {
  
  "matches": ["http://jquery.com/*"],
  "all_frames":true,
    "js": ["jquery.js","jquery-ui.min.js","content_script.js"],
     "run_at": "document_end"
  }
  ],  
  </code></pre>