Fork 0

mention dl-*.fetch-options.json in readme

This commit is contained in:
Conduitry 2022-06-13 08:12:07 -04:00
parent 635ad1b3b6
commit 6a278ec527
1 changed files with 18 additions and 0 deletions

View File

@ -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
// 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