Update README.md

scripts
王良 2024-04-28 01:14:05 +08:00 committed by GitHub
parent b0149e3404
commit 45189e74f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 4 deletions

View File

@ -8,7 +8,19 @@
注:如果以下配置中的链接速度太慢,可以从 [Github油猴脚本](https://github.com/XIU2/UserScript/blob/master/GithubEnhanced-High-Speed-Download.user.js) 的 `raw_url`找一个高速访问raw资源的加速源来替换以下配置。
### `/github/monkey.js`: Github油猴脚本-拦截配置
### `/tampermonkey.js`: 油猴脚本浏览器扩展自定义配置未配置时使用DS内置脚本不保证最新
```json
{
"github.com": {
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"tampermonkeyScript": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/docmirror/dev-sidecar/scripts/tampermonkey.js"
}
}
}
```
### `/GithubEnhanced-High-Speed-Download.user.js`: Github油猴脚本-拦截配置
```json
{
@ -16,9 +28,6 @@
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"script": [
"https://raw.githubusercontent.com/docmirror/dev-sidecar/scripts/GithubEnhanced-High-Speed-Download.user.js"
// 或高速镜像地址(镜像地址不止以下这一个,大家可以在 `./GithubEnhanced-High-Speed-Download.user.js``raw_url` 数组中随便找一个来使用,哪个更快就用哪个。)
//"https://mirror.ghproxy.com/https://raw.githubusercontent.com/docmirror/dev-sidecar/scripts/GithubEnhanced-High-Speed-Download.user.js"
],
"desc": "加载DS仓库中的Github油猴脚本加速clone和文件下载等。"
}