mention dl-*.fetch-options.json in readme
This commit is contained in:
parent
635ad1b3b6
commit
6a278ec527
18
README.md
18
README.md
@ -1,5 +1,23 @@
|
||||
# dl-fur
|
||||
|
||||
## `dl-*.fetch-options.json`
|
||||
|
||||
Each `dl-*.js` will look for a corresponding `dl-*.fetch-options.json` and, if present, will use it as the second argument in all `fetch` calls.
|
||||
|
||||
For example, if you have a `cf_clearance` cookie for the Cloudflare protection in front of FurryBooru, you can create
|
||||
|
||||
```json
|
||||
// dl-furrybooru.fetch-options.json
|
||||
{
|
||||
"headers": {
|
||||
"cookie": "cf_clearance=whatever",
|
||||
"user-agent": "whatever"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
and this cookie and user-agent will be used for API calls and for downloading the images.
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
Loading…
Reference in New Issue
Block a user