Hello,
is there a way to implement V8Handler?
I need to intercept the javascript requests from webpages, modify them and then send them back as a "real" response. Such as the Battermanager, navigator.userAgent and much more.
I thought about injections with Object.defineProperty(BatteryManager.prototype and the whole thing via
var script = document.createElement("script");
script.textContent = "(" + inject + ")()";
document.documentElement.appendChild(script);
script.remove();
to inject. However, this was discarded because it should probably be possible to recognize or block this type of injection.