Update README.md

scripts
王良 2024-04-17 17:23:29 +08:00 committed by GitHub
parent ef74ec0456
commit 2cf8efdbe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 8 deletions

View File

@ -11,17 +11,11 @@
```json
{
"github.com": {
"^(/[^/]+){2}([/?].*)?$": {
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"script": [
"/ds_github_monkey_script.js"
"[/ds_github_monkey_script.js](https://raw.githubusercontent.com/docmirror/dev-sidecar/scripts/github/monkey.js)"
],
"desc": "加载DS仓库中的Github油猴脚本加速clone和文件下载等。"
},
"^/ds_github_monkey_script.js$": {
"proxy": "https://raw.githubusercontent.com/docmirror/dev-sidecar/scripts/github/monkey.js",
"response": { "headers": { "content-type": "application/javascript; charset=utf-8" } },
"cacheDays": 7,
"desc": "代理到DS仓库中的Github油猴脚本并设置响应头 `content-type: 'application/javascript; charset=utf-8'`同时缓存7天。"
}
}
}