Thanks for pointing me in the right directions. Content Script is a static JS file included in the build. How do I pass a parameter/variable to it?
My use-case is as follows- I want user to specify a word, and when i show the webpage in Geckoview, I want to highlight the word occurrence in the page . How to I pass this word_to_higlight variable to my content script?
Hi @weprofit sorry for the delay,
As the documentation describe the web extension allows bidirectional communication, you can send a message from Kotlin/Java to JavaScript and viscera. Take a look at the section “Communicating with Web Content” under the web extension documentation. There you can find some examples of how to pass some parameter/variables from one side to another. Here you can find a more in-depth example of the Reader view functionality.
Hi, im getting the Secure Connection Failed, it is because bad cert or something, you know how to handle this? in firefox there is a option to continue, thanks
Hi @amejia481 Thanks for the help.
I have one question, If i want to change the class name 'infobox' in JS during runtime depending on the next page it opens.
How do you make this work in Android 4.1.1 (API 16)? It throws all kinds of Java compile errors when I follow the steps you outlined but with a new (empty) project.
Hi Arturo, I have read some samples and documentation. I need to intercept all requests from a webpage inside geckoview (link, XMLHttpRequest, every resource request, requests from inside iFrames). Is that possible?
I looked at WebExtension but it looks that is not what I need. Would be great if I could inject/set a global WebExecutor to process all requests. Any hint/suggestion is highly appreciated.