[webkit-help] APIs for pre-injecting JavaScript
Luc R.
wkdev911 at gmail.com
Fri Jun 20 13:56:01 PDT 2014
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 <benjamin at webkit.org>
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
> webkit-help at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-help
>
--
-Luc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-help/attachments/20140620/72a4bcdc/attachment.html>
More information about the webkit-help
mailing list