1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
contentScript1.js


$(document).ready(function() {


  //inject javascripts to the head of the page
  function injectJs(srcFile) {
  var scr = document.createElement('script');
  scr.type="text/javascript";
  scr.src=srcFile;
  document.getElementsByTagName('head')[0].appendChild(scr);
  }
  injectJs(chrome.extension.getURL('js/jquery-min.js'));

});