<commit_before>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](https://play.google.com/store/apps/details?id=at.pardus.android.browser)

ToDo
----

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

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

Improvement of the user interface.
Update checks of the installed user scripts.

Limitations
-----------

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

Contributing
------------

Fork the repository and send a pull request:
http://help.github.com/send-pull-requests/<commit_msg>Update README to explain usage via Gradle and Maven<commit_after>WebView-GM
==========

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

Usage
-----

##### Gradle
        compile 'at.pardus.android:webview-gm-lib:1.1.1'
        compile 'at.pardus.android:webview-gm-ui:1.1.1'
##### Maven
        <dependency>
            <groupId>at.pardus.android</groupId>
            <artifactId>webview-gm-lib</artifactId>
            <version>1.1.1</version>
        </dependency>
        <dependency>
            <groupId>at.pardus.android</groupId>
            <artifactId>webview-gm-ui</artifactId>
            <version>1.1.1</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](https://play.google.com/store/apps/details?id=at.pardus.android.browser)

Limitations
-----------

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

ToDo
----

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

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

Improvement of the user interface.
Update checks of the installed user scripts.

Contributing
------------

Fork the repository and send a pull request:
http://help.github.com/send-pull-requests/
{'fraction_non_alphanumeric': 0.1052784222737819, 'fraction_numerical': 0.004640371229698376, 'mean_word_length': 3.837307152875175, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7402636', 'n_tokens_mistral': 992, 'n_tokens_neox': 952, 'n_words': 351}