https://github.com/feng2208/github-hosts
加速github,用spotify听歌无广告。
https://github.com/feng2208/github-hosts
github hosts spotify
Last synced: 6 months ago
JSON representation
加速github,用spotify听歌无广告。
- Host: GitHub
- URL: https://github.com/feng2208/github-hosts
- Owner: feng2208
- License: apache-2.0
- Created: 2024-01-30T03:34:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-25T06:27:20.000Z (7 months ago)
- Last Synced: 2025-04-04T05:41:42.659Z (6 months ago)
- Topics: github, hosts, spotify
- Language: Python
- Homepage: https://feng2208.pages.dev/github-hosts
- Size: 22.9 MB
- Stars: 258
- Watchers: 4
- Forks: 28
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- [加速github](https://github.com/feng2208/github-hosts)([mirror](https://feng2208.pages.dev/github-hosts))
- [国内注册使用spotify](https://feng2208.pages.dev/posts/spotify),无广告可以任意切歌。## 加速github
从`命令提示符`启动,在执行命令前**先关闭**浏览器。### 谷歌浏览器
Windows
```bat
"C:\Program Files\Google\Chrome\Application\chrome.exe" --host-rules="MAP github.com octocaptcha.com, MAP github.githubassets.com yelp.com, MAP *.githubusercontent.com yelp.com" --host-resolver-rules="MAP octocaptcha.com 20.27.177.113, MAP yelp.com 199.232.240.116"
```macOS
```sh
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --host-rules="MAP github.com octocaptcha.com, MAP github.githubassets.com yelp.com, MAP *.githubusercontent.com yelp.com" --host-resolver-rules="MAP octocaptcha.com 20.27.177.113, MAP yelp.com 199.232.240.116"
```### 微软Edge浏览器
在浏览器`设置`-`系统和性能`将`启动增强`关闭。```bat
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --host-rules="MAP github.com octocaptcha.com, MAP github.githubassets.com yelp.com, MAP *.githubusercontent.com yelp.com" --host-resolver-rules="MAP octocaptcha.com 20.27.177.113, MAP yelp.com 199.232.240.116"
```### git命令
- [下载github-hosts](https://github.com/feng2208/github-hosts/archive/refs/heads/main.zip) 解压出来,运行`github-hosts.bat`
- 设置`git`使用代理`git config --global http.proxy http://127.0.0.1:8180`
- 使用`git`命令,类似:
```
git -c http.sslVerify=false clone https://github.com/feng2208/github-hosts.git
```
- 取消使用代理:`git config --global --unset http.proxy`