重定向:Grape打开GitHub

 阅读


修改配置

打开Surge3,在文本编辑模式下对应字段复制代码如下:

[URL Rewrite]

//Grape for GitHub
^https:\/\/github\.com\/(?!.*users)(?!.*trending)(.+?)\/commit\/(.*)$ grape://commit?id=$2&reponame=$1 307
^https:\/\/github\.com\/(?!.*users)(?!.*trending)(.+?)\/pull\/(\d+)$ grape://pr?number=$2&reponame=$1 307
^https:\/\/github\.com\/(?!.*users)(?!.*trending)(.+?)\/issues\/(\d+)$ grape://issue?number=$2&reponame=$1 307
^https:\/\/github\.com\/(?!.*users)(?!.*trending)(.+?)\/pulls\/?$ grape://prs?reponame=$1 307
^https:\/\/github\.com\/(?!.*users)(?!.*trending)(.+?)\/issues\/?$ grape://issues?reponame=$1 307
^https:\/\/github\.com\/(?!.*users)(?!.*trending)([\u4E00-\u9FA5A-Za-z0-9_-]+)\/(?!.*blob)([\u4E00-\u9FA5A-Za-z0-9_-]+)(?!.*md)(?!.*png|jpg)$ grape://repo?reponame=$1/$2 307
^https:\/\/github\.com\/(?!.*users)(?!.*trending)([\u4E00-\u9FA5A-Za-z0-9_-]+)$ grape://user?login=$1 307

[MITM]

hostname =

github.com

参考配置

从URL下载配置: Grape for GitHub


注意:确保打开RewriteMITM(证书安装并信任)


效果



 RSS订阅


 邮件订阅



 阅读时间

00:00:00


一言 获取中...