Reputation: 325
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?
Upvotes: 4
Views: 5345
Reputation: 21
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
Upvotes: 2
Reputation: 1007544
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.
Upvotes: 4