Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

How to inject Javascript to loaded web page

  • 1 wótegrono
  • 1 ma toś ten problem
  • 16 naglědow
  • Slědne wótegrono wót Kevin

more options

Hi There,

I want to run javascript on a loaded webpage on Android. I was able to do this when I was using webview:

webview.loadUrl (String.format ("javascript: setProperties (% s)", someJsonObject.toString ()))

How do I do the same when using GeckoView?

geckoSession.loadUri (String.format ("javascript: setProperties (% s)", someJsonObject.toString ())) -- won't work for me.

I just want to something like this : https://medium.com/appunite-edu-collection/webview-with-injected-js-script-13eb1e0257c9 or https://medium.com/@filipe.batista/inject-javascript-into-webview-2b702a2a029f

Hi There, I want to run javascript on a loaded webpage on Android. I was able to do this when I was using webview: webview.loadUrl (String.format ("javascript: setProperties (% s)", someJsonObject.toString ())) How do I do the same when using GeckoView? geckoSession.loadUri (String.format ("javascript: setProperties (% s)", someJsonObject.toString ())) -- won't work for me. I just want to something like this : https://medium.com/appunite-edu-collection/webview-with-injected-js-script-13eb1e0257c9 or https://medium.com/@filipe.batista/inject-javascript-into-webview-2b702a2a029f

Wšykne wótegrona (1)

more options

This is an end user support forum. Geckoview questions should be asked at the options provided at https://wiki.mozilla.org/Mobile/GeckoView#Getting_Help

https://mozilla.github.io/geckoview/consumer/docs/web-extensions may be of some help.