Skip to content

Android library for Greasemonkey-compatible user script support

License

Notifications You must be signed in to change notification settings

s84606/webview-gm

 
 

Repository files navigation

WebView-GM

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

Usage

  • Download the source and import it in Eclipse.
  • Add it as library in your Android projects (Properties -> Android).
  • 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 package.
  • Handle the management of scripts using the classes in the UI package, or extend them, or implement your own.

The WebViewGmImpl class 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

ToDo

Missing GM functions: GM_xmlhttpRequest, GM_getResourceText, GM_getResourceURL, GM_registerMenuCommand, GM_openInTab, GM_info See http://wiki.greasespot.net/Greasemonkey_Manual:API

Missing metablock header interpretation/implementation: @require, @resource See http://wiki.greasespot.net/Metadata_Block

Improvement of the user interface.

Contributing

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

About

Android library for Greasemonkey-compatible user script support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%