You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dev-sidecar/README.md

29 lines
1.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# dev-sidecar 脚本分支
当前分支用于提供最新版本的一些实用脚本,供大家使用。
请使用 [DevSidecar-1.8.1](https://github.com/docmirror/dev-sidecar/releases/tag/v1.8.1) 的新特性 [#294](https://github.com/docmirror/dev-sidecar/pull/294),来引用最新版本的脚本。
## 各脚本使用(配置)方法:
### `/github/monkey.js`: Github油猴脚本-拦截配置
```json
{
"github.com": {
"^(/[^/]+){2}([/?].*)?$": {
"script": [
"/ds_github_monkey_script.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天。"
}
}
}
```