diff --git a/README.md b/README.md index 2d3ff18c..480e20e4 100644 --- a/README.md +++ b/README.md @@ -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和文件下载等。" }