(Translated by https://www.hiragana.jp/)
GitHub - godmodel/GitHub520: :kissing_heart:让你“爱”上 GitHub,解决访问时图裂、加载慢的问题。
Skip to content

😘让你“爱”じょう GitHub,かい决访问时图裂、载慢てき问题。

Notifications You must be signed in to change notification settings

godmodel/GitHub520

 
 

Repository files navigation

GitHub520


HelloGitHub ぶんとおる GitHub じょうゆうおもむきにゅう门级てき开源项目。
兴趣さいこのみてきろう师,这里のう够帮你找到编程てき兴趣!

いちかい

对 GitHub 说"爱"ふと难了:访问慢、图片载不出来でき

ちゅう ほん项目还处于测试阶だん,仅在ほんつくえ测试どおり过,如有问题欢迎ひさげ issues


ほん项目无需あんそうにん何程なにほどじょつう过修あらため本地ほんじ hosts ぶんけん,试图かい决:

  • GitHub 访问速度そくど慢的问题
  • GitHub 项目ちゅうてき图片显示不出ふしゅつてき问题

はな 5 ふん钟时间,让你"爱"じょう GitHub。

使用しよう方法ほうほう

2.1 复制下面かめんてき内容ないよう

# GitHub520 Host Start
185.199.108.154               github.githubassets.com
199.232.96.133                camo.githubusercontent.com
199.232.96.133                github.map.fastly.net
199.232.69.194                github.global.ssl.fastly.net
140.82.114.3                  gist.github.com
185.199.108.153               github.io
140.82.114.4                  github.com
140.82.113.5                  api.github.com
199.232.96.133                raw.githubusercontent.com
199.232.96.133                user-images.githubusercontent.com
40.75.87.113                  favicons.githubusercontent.com
199.232.96.133                avatars5.githubusercontent.com
199.232.96.133                avatars4.githubusercontent.com
199.232.96.133                avatars3.githubusercontent.com
199.232.96.133                avatars2.githubusercontent.com
199.232.96.133                avatars1.githubusercontent.com
199.232.96.133                avatars0.githubusercontent.com
140.82.113.9                  codeload.github.com
52.216.128.147                github-cloud.s3.amazonaws.com
52.216.0.224                  github-com.s3.amazonaws.com
52.216.107.188                github-production-release-asset-2e65be.s3.amazonaws.com
52.217.1.4                    github-production-user-asset-6210df.s3.amazonaws.com
52.217.67.196                 github-production-repository-file-5c1aeb.s3.amazonaws.com
# Star me GitHub url: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End

上面うわつら内容ないようかい动定时更新こうしん最新さいしん有效ゆうこうかずすえ更新こうしん时间:2020-11-20T14:16:55+08:00(内容ないよう无变动不かい更新こうしん

2.1 动方しき

2.1.1 おさむあらため hosts ぶんけん

hosts ぶんけんざいまい个系统的位置いち不一ふいつ,详情如下:

  • Windows けい统:C:\Windows\System32\drivers\etc\hosts
  • Linux けい统:/etc/hosts
  • Mac(苹果りんご电脑)けい统:/etc/hosts
  • Android(あんたくけい统:/system/etc/hosts
  • iPhone(iOS)けい统:/etc/hosts

おさむあらため方法ほうほうだい一步的内容复制到文本末尾:

  1. Windows 使用しよう记事ほん
  2. Linux、Mac 使用しよう Root 权限:sudo vi /etc/hosts
  3. iPhone、iPad 须越狱、Android 必须よう root。

2.1.2 げきかつせいこう

だい部分ぶぶんじょう况下直接ちょくせつなまこう,如未せいこう尝试下面かめんてき办法,刷新さっしん DNS:

  1. Windows:ざい CMD まどこう输入:ipconfig /flushdns

  2. Linux 命令めいれいsudo rcnscd restart

  3. Mac 命令めいれいsudo killall -HUP mDNSResponder

Tips: 上述じょうじゅつ方法ほうほう无效以尝试重启机

2.2 动方しき

Tip:推荐 SwitchHosts 工具こうぐ管理かんり hosts

以 SwitchHosts 为例,いち怎么使用しようてき配置はいち参考さんこう下面かめん

  • Title: 随意ずいい

  • Type: Remote

  • URL: https://gitee.com/xueweihan/codes/6g793pm2k1hacwfbyesl464/raw?blob_name=GitHub520.yml

  • Auto Refresh: さいこう1 hour

如图:

这样每次まいじ hosts ゆう更新こうしんのう及时进行更新こうしんまぬかれ更新こうしん

2.3 AdGuard Home よう户(动方しき

ざい 过滤>DNS ふう锁清单>添加てんか阻止そしれつひょう>添加てんか一个自定义列表配置はいち如下:

  • 名称めいしょう: 随意ずいい

  • URL: https://gitee.com/xueweihan/codes/6g793pm2k1hacwfbyesl464/raw?blob_name=GitHub520.yml和上わじょうめん SwitchHosts 使用しようてきいち样)

如图:

更新こうしん间隔ざい 设置>つね规设おけ>过滤更新こうしん间隔(设置一小时一次即可),记得勾选じょう 使用しよう过滤 Hosts ぶんけん以拦截指定していいきめい

Tip不要ふよう添加てんかざい DNS まこと许清单 うちただのう添加てんかざい DNS ふう锁清单 ざいかんよう。另外,AdGuard for Mac、AdGuard for Windows、AdGuard for Android、AdGuard for IOS とうとう AdGuard 家族かぞく软件 添加てんか方法ほうほうひとし类似。

さん效果こうか对比

これまえてき样子:

おさむあらためかん hosts てき样子:

TODO

  • てい时自动更しん hosts 内容ないよう
  • hosts 内容ないよう无变动不かい更新こうしん
  • 寻到さい优 IP 解析かいせき结果

声明せいめい

知识共享许可协议
ほん作品さくひんさいよう 署名しょめい-しょう业性使用しよう-禁止きんしえんじ绎 4.0 こく 进行许可。

About

😘让你“爱”じょう GitHub,かい决访问时图裂、载慢てき问题。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%