A simple script for converting Grease Monkey script to Chrome content script extension.
$ ls
cool-gm-script.js
$ python3 conveter.py cool-gm-script.js cool-gm-script
Convert finished!
$ ls cool-gm-script
cool-gm-script.js jquery-2.0.3.min.js manifest.json
This script will parse the grease monkey script's metadata block, and map them into Chrome extension's manifest defination.
It will also retrieve the remote scripts that require by the script.
In order to mock some API that grease monkey provided, you can refer to grantGM_xmlhttpRequest.js.
Contribution is welcome, feel free to open an issue and fork. Waiting for your pull request <3