I have need to take the DOM that has already been processed by a browser, i.e. all the scripts on it have already run, then do some post-processing on using CEF.
I can't let CEF re-execute the scripts in the HTML because doing so will create duplicate content in many cases.
The problem is that I need to be able to execute javascript to do the post-processing, and from what we've found so far, if you disable javascript execution before loading the content, you can't execute it later either.
Obviously one solution is to simply strip out all the scripts out of the HTML for the DOM, but the problem there is that some of the post-processing requires those scripts to be there - e.g. I need to be able to do things like enumerate script tags that load external resources.
If someone has a clue has to how this might be possible, or even as to where I might start looking in the CEF source as to how to add this functionality myself, I'd be eternally grateful!
Thanks
Dylan