What would be the right time to inject the user script? I tried before
mainFrame->loadRequest, but it causes navigation to fail.


On Wed, Jun 18, 2014 at 5:24 PM, Benjamin Poulain <[email protected]>
wrote:

> On 6/18/14, 5:13 PM, Luc R. wrote:
>
>> I am trying to find API which would allow to pre-inject a custom
>> JavaScript before a web page content. Could anyone point to it?
>>
>
> On the new WKWebView API, you can use a WKUserScript with the injection
> time "WKUserScriptInjectionTimeAtDocumentStart".
>
> Benjamin
> _______________________________________________
> webkit-help mailing list
> [email protected]
> https://lists.webkit.org/mailman/listinfo/webkit-help
>



-- 
-Luc
_______________________________________________
webkit-help mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-help

Reply via email to