<div dir="ltr">What would be the right time to inject the user script? I tried before mainFrame-&gt;loadRequest, but it causes navigation to fail.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 5:24 PM, Benjamin Poulain <span dir="ltr">&lt;<a href="mailto:benjamin@webkit.org" target="_blank">benjamin@webkit.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 6/18/14, 5:13 PM, Luc R. wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am trying to find API which would allow to pre-inject a custom<br>
JavaScript before a web page content. Could anyone point to it?<br>
</blockquote>
<br></div>
On the new WKWebView API, you can use a WKUserScript with the injection time &quot;<u></u>WKUserScriptInjectionTimeAtDoc<u></u>umentStart&quot;.<br>
<br>
Benjamin<br>
______________________________<u></u>_________________<br>
webkit-help mailing list<br>
<a href="mailto:webkit-help@lists.webkit.org" target="_blank">webkit-help@lists.webkit.org</a><br>
<a href="https://lists.webkit.org/mailman/listinfo/webkit-help" target="_blank">https://lists.webkit.org/<u></u>mailman/listinfo/webkit-help</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>-Luc
</div>