> For the complete documentation index, see [llms.txt](https://qx.atlucky.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qx.atlucky.me/github-xiang-guan.md).

# GitHub相关

## 获取RAW地址

在群组里面或者网络上寻找一些QX相关资源时候，经常需要用到GitHub，里面拥有大量收集整理好的规则分流、脚本等资源，对于一些新手，别人在群组里面给出一个GitHub相关链接时候，如何分辨这个链接是直接可以使用还是需要点击进去自己查找的可以说是相当重要的一个环节

QX等代理软件在添加远程资源(分流规则/重写/脚本)时，需要使用RAW格式的地址。以下方的链接举例(这是个网页，不是真正能使用的资源链接)：`https://github.com/blackmatrix7/ios_rule_script/`<mark style="color:red;">`blob`</mark>`/master/rule/QuantumultX/12306/12306.list`

\
例如在末尾添加`?raw=ture`⁠：`https://github.com/blackmatrix7/ios_rule_script/blob/master/rule/QuantumultX/12306/12306.list?raw=ture`

或者直接点击`raw`或者`view`⁠使用跳转后的链接：`https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/12306/12306.list`&#x20;

\
或者将链接里的`blob`⁠修改为`raw`

`https://github.com/blackmatrix7/ios_rule_script/raw/master/rule/QuantumultX/12306/12306.list`

* PC网页获取方法：

<figure><img src="https://2561386001-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAEWhRirZZwQJairpE2Z5%2Fuploads%2FKqLaPxAmiUg3ShoKP6BA%2FAFAE89F9-8A5B-4E89-9EC6-84DF022A9FB8.jpg?alt=media&amp;token=6775d1a2-7b9a-4d61-bd0c-14a82b65e2e7" alt=""><figcaption></figcaption></figure>

* 手机版网页获取方法：

<figure><img src="https://2561386001-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAEWhRirZZwQJairpE2Z5%2Fuploads%2FdJnWNAwDdLN4H97X5GSt%2F6C0C57B4-1D31-4CBF-A9E2-9C0E84D735F0.png?alt=media&amp;token=0d8f66bf-0048-430a-8d14-0d3086484b85" alt=""><figcaption></figcaption></figure>

* [blackmatrix7](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule)的分流规则通常会直接贴出raw格式地址，找到具体的项目，下方就raw格式的链接

<figure><img src="https://2561386001-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAEWhRirZZwQJairpE2Z5%2Fuploads%2FrsahyXAlo1cFIhGNuvvG%2F158EB9A1-268C-460B-BE60-7BC810351B2C.jpg?alt=media&amp;token=594aeb03-13fc-4ffb-93fa-83406980ea61" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
使用blackmatrix7的规则和重写时候，请仔细阅读下方的使用方法。
{% endhint %}
