Add readme for injection

This commit is contained in:
Jia Hao 2016-02-25 15:09:26 +08:00
parent e1426b849a
commit 166aa8962e
1 changed files with 15 additions and 0 deletions

View File

@ -27,6 +27,7 @@ View the changelog [here](https://github.com/jiahaog/nativefier/blob/master/Hist
- Automatically retrieves the correct icon and app name
- Flash Support (Needs Testing)
- Javascript and CSS injection
## Installation
@ -252,6 +253,20 @@ By default, nativefier will automatically try to determine the location of your
From my experience, it might be helpful to pass the `--insecure` flag if you are using nativefied flash apps, as some `https` websites tend to serve flash insecurely.
#### [inject]
```
--inject <value>
```
Allows you to inject a javascript or css file. This command can be run multiple times to inject the files.
Example:
```bash
$ nativefier http://google.com --inject ./some-js-injection.js --inject ./some-css-injection.css ~/Desktop
```
## Programmatic API
You can use the Nativefier programmatic API as well.