写在前面
这是github上面一位老板自费买的服务器大概24年12月过期本文为转载
在油猴(如果你不知道油猴看这个:链接)上下两个脚本github增强(增加你clone项目的速度)、github加速(访问加速(前提是你第一次必须打开github不然脚本不会生效))
使用方法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| 140.82.112.26 alive.github.com 140.82.113.5 api.github.com 185.199.110.153 assets-cdn.github.com 185.199.108.133 avatars.githubusercontent.com 185.199.108.133 avatars0.githubusercontent.com 185.199.108.133 avatars1.githubusercontent.com 185.199.108.133 avatars2.githubusercontent.com 185.199.108.133 avatars3.githubusercontent.com 185.199.108.133 avatars4.githubusercontent.com 185.199.108.133 avatars5.githubusercontent.com 185.199.108.133 camo.githubusercontent.com 140.82.113.22 central.github.com 185.199.108.133 cloud.githubusercontent.com 140.82.114.9 codeload.github.com 140.82.113.21 collector.github.com 185.199.108.133 desktop.githubusercontent.com 185.199.108.133 favicons.githubusercontent.com 140.82.113.4 gist.github.com 54.231.236.113 github-cloud.s3.amazonaws.com 52.217.226.121 github-com.s3.amazonaws.com 52.216.44.33 github-production-release-asset-2e65be.s3.amazonaws.com 54.231.161.177 github-production-repository-file-5c1aeb.s3.amazonaws.com 54.231.130.81 github-production-user-asset-6210df.s3.amazonaws.com 192.0.66.2 github.blog 140.82.113.4 github.com 140.82.113.18 github.community 185.199.109.154 github.githubassets.com 151.101.129.194 github.global.ssl.fastly.net 185.199.110.153 github.io 185.199.108.133 github.map.fastly.net 185.199.110.153 githubstatus.com 140.82.113.26 live.github.com 185.199.108.133 media.githubusercontent.com 185.199.108.133 objects.githubusercontent.com 13.107.42.16 pipelines.actions.githubusercontent.com 185.199.108.133 raw.githubusercontent.com 185.199.108.133 user-images.githubusercontent.com 13.107.253.40 vscode.dev 140.82.113.21 education.github.com
|
- window用户在C:\Windows\System32\drivers\etc\hosts
- Mac用户在/etc/hosts
- Ios用户在/etc/hosts
- 把代码添加到hosts中就可以了
如果不生效可以刷新dns:
-
Windows:在 CMD 窗口输入:ipconfig /flushdns
-
Linux 命令:sudo nscd restart,如报错则须安装:sudo apt install nscd 或 sudo /etc/init.d/nscd restart
-
Mac 命令:sudo killall -HUP mDNSResponder
写在最后
- 实际体验下来该打不开还是打不开,不过部分图片确实是可以看到了