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

54 lines
1.6 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) 及以上版本。
## 各脚本使用(配置)方法:
注:如果以下配置中的链接速度太慢,可以从 [Github油猴脚本](https://github.com/XIU2/UserScript/blob/master/GithubEnhanced-High-Speed-Download.user.js) 的 `raw_url`找一个高速访问raw资源的加速源来替换以下配置。
### 油猴脚本浏览器扩展:`/tampermonkey.js`
> 未配置时使用DS内置脚本不保证最新。注意此脚本需与script配置的脚本一起使用单独配置并不会加载它。
```json
{
"github.com": {
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"tampermonkeyScript": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/docmirror/dev-sidecar/scripts/tampermonkey.js"
}
}
}
```
### Github油猴脚本`/GithubEnhanced-High-Speed-Download.user.js`
```json
{
"github.com": {
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"script": [
"https://raw.githubusercontent.com/docmirror/dev-sidecar/scripts/GithubEnhanced-High-Speed-Download.user.js"
],
"desc": "加载DS仓库中的Github油猴脚本加速clone和文件下载等。"
}
}
}
```
如希望使用DS内置的脚本请使用以下拦截配置
```json
{
"github.com": {
"^(/[\\w-.]+){2,}/?(\\?.*)?$": {
"script": [
"github"
],
"desc": "加载DS内置的Github油猴脚本加速clone和文件下载等。"
}
}
}
```