Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 authored Apr 27, 2024
1 parent 45189e7 commit 6e4f5e0
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

注:如果以下配置中的链接速度太慢,可以从 [Github油猴脚本](https://github.com/XIU2/UserScript/blob/master/GithubEnhanced-High-Speed-Download.user.js)`raw_url` 中,找一个高速访问raw资源的加速源,来替换以下配置。

### `/tampermonkey.js`: 油猴脚本浏览器扩展自定义配置(未配置时,使用DS内置脚本,不保证最新)
### 油猴脚本浏览器扩展:`/tampermonkey.js`

> 注:未配置时,使用DS内置脚本,不保证最新。注意此脚本需与script配置的脚本一起使用,单独配置并不会加载它。
```json
{
Expand All @@ -20,7 +22,7 @@
}
```

### `/GithubEnhanced-High-Speed-Download.user.js`: Github油猴脚本-拦截配置
### Github油猴脚本:`/GithubEnhanced-High-Speed-Download.user.js`

```json
{
Expand All @@ -34,3 +36,18 @@
}
}
```

如希望使用DS内置的脚本,请使用以下拦截配置:

```json
{
"github.com": {
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"script": [
"github"
],
"desc": "加载DS内置的Github油猴脚本,加速clone和文件下载等。"
}
}
}
```

0 comments on commit 6e4f5e0

Please sign in to comment.