Skip to content

wbayer/webview-gm

Repository files navigation

WebView-GM

Android Arsenal

This library for Android projects adds Greasemonkey-compatible user script support to standard WebView components (version 2.2+).

Usage

Download Download

Gradle
dependencies {
    compile 'at.pardus.android:webview-gm-lib:1.2.0'
    compile 'at.pardus.android:webview-gm-ui:1.2.0'
}
Maven
<dependency>
    <groupId>at.pardus.android</groupId>
    <artifactId>webview-gm-lib</artifactId>
    <version>1.2.0</version>
</dependency>
<dependency>
    <groupId>at.pardus.android</groupId>
    <artifactId>webview-gm-ui</artifactId>
    <version>1.2.0</version>
</dependency>
  • Create a new ScriptStoreSQLite object for script and value persistence, or implement your own ScriptStore.
  • Make the WebView class that you want to run scripts in extend WebViewGm, or use the ScriptBrowser class in the UI module.
  • Handle the management of scripts using the classes in the UI module, or extend them, or implement your own.

The demo module contains an implementation of the library and all its components. It uses a single WebView for both the download of user scripts and running them.

Apps using it

Pardus Android

Limitations

GM_xmlhttpRequest implementation is missing an "abort()" callback.

ToDo

Contributing

Fork the repository and send a pull request: https://help.github.com/articles/using-pull-requests/

About

Android library for Greasemonkey-compatible user script support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages