4

Can I do something to Android framework (browser/webkit part) to run my own predefined JavaScript (scripts) along with every web page browsed by the default web browser of Android?

1

2 Answers 2

4

Can I do something to Android framework (browser/webkit part) to run my own predefined JavaScript (scripts) along with every web page browsed by the default web browser of Android?

There is no single "default web browser of Android".

I know of no way to install userscripts on the AOSP Browser or Chrome. There are third-party apps like TamperMonkey that effectively are their own Web browser and offer userscripts, and other third-party browsers may have hooks that could be used for a GreaseMonkey equivalent.

Sign up to request clarification or add additional context in comments.

2 Comments

Just an update for posterity: Android now must have Chrome and the WebView is built on chrome. so most versions of Android now use chrome for the WebView.
openuserjs.org/scripts/eltomjan/UK_Settlement_login_automation/… You can use better Chrome desktop TamperMonkey plugin in Kiwi and create simple automation page shortcuts like this mentioned.
2

You can take a look to this site, i have found very useful the js. DroidScript provides a JavaScript interface between your HTML pages and native Android code allowing you to utilize device functionality with the simplest of JavaScript commands.

https://github.com/divineprog/droidscript

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.