The loaded page html include a js function:
<html>
....
<body>
  <script>
  function test(){
    alert("I'm master");
   //here is the page original funciton
  }
  </script>
</body>
</html>
And i want to write a chrome extension load my customize js file replace the current page js function test() ,for example :
new function name =>  
function test() {
    alert("I'm a new function come my chrome extension ");
}
what should i do?
 
     
    