title: Inject JavaScript in Android WebView to replace already existing object
body: <p>I need some help with Android's WebView. I am trying to create an app which loads a webpage, I cannot change. The webpage does load a number of javascript files and I am trying to overwrite the behavior of one of the existing objects in them.
  The problem is that in one of the scripts, this object gets initialized with a constructor and gets reset like:</p>
  <pre><code>obj.init();//invokes the method in my ObjInterface class which I inject
  obj = new ObjectClass();
  obj.init();//invokes the original ObjectClass method
  </code></pre>
  <p>Passed this line, my interface is no longer called and the obj behaves as per default.
  I have this flags set:</p>
  <pre><code>settings.setJavaScriptEnabled(true);
  settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
  settings.setDomStorageEnabled(true);
  settings.setJavaScriptCanOpenWindowsAutomatically(true);
  settings.setAllowFileAccess(true);
  </code></pre>
  <p>How could I achieve this?
  Regards</p>