开发者

How do I evaluate JavaScript before the browser does?

I am looking for a way to get javascript code before SpiderMoney (Firefox JS engine) or V8 (Ch开发者_StackOverflow社区rome JS engine) evaluate the it.

I don't mean capturing the traffic and get it before the application does, but "hijacking" the javascript before it reaches the JS engine itself.

Does anyone know how to do it, or at least point me to the correct direction?


I compiled my own build of SpiderMonkey. Once I've done that I called my own function before the compile() function of the engine.

The function is not exported so it cannot be hooked (replaced during runtime), only patched.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜