程序员求职经验分享与学习资料整理平台

网站首页 > 文章精选 正文

简单一招,解决全球最大同性交友网站访问时加载慢、图裂等问题

balukai 2025-01-18 17:21:55 文章精选 4 ℃

简单一招,解决全球最大同性交友网站访问时加载慢、图裂等问题

前言

对于在大陆许多喜欢使用全球最大同性交友网站的用户来说github.com,有时候访问时遇到的加载缓慢、图片无法正常显示(图裂)等问题无疑是一种困扰。

这些问题不仅影响了用户体验,还可能导致用户放弃使用该平台。

为了解决这些问题,GitHub上出现了一个名为“GitHub520”的开源项目,受到了广大用户的关注。

image-20250104163941765

GitHub520是什么

让你“爱”上 GitHub,解决访问时图裂、加载慢的问题。(无需安装)

GitHub520是一个开源项目,旨在通过修改本地hosts文件,加速访问GitHub等网站,从而解决访问缓慢、图裂等问题。

该项目利用GitHub获取GitHub相关域名对应的最新IP,并生成hosts文件,用户只需将生成的内容复制到本地hosts文件中即可。

使用方法1

下面的地址无需访问 GitHub 即可获取到最新的 hosts 内容:

文件:https://raw.hellogithub.com/hosts
JSON:https://raw.hellogithub.com/hosts.json

手动方法

复制下面的内容

# GitHub520 Host Start
140.82.113.25                 alive.github.com
140.82.112.6                  api.github.com
185.199.110.153               assets-cdn.github.com
185.199.110.133               avatars.githubusercontent.com
185.199.111.133               avatars0.githubusercontent.com
185.199.111.133               avatars1.githubusercontent.com
185.199.110.133               avatars2.githubusercontent.com
185.199.111.133               avatars3.githubusercontent.com
185.199.111.133               avatars4.githubusercontent.com
185.199.110.133               avatars5.githubusercontent.com
185.199.111.133               camo.githubusercontent.com
140.82.113.21                 central.github.com
185.199.111.133               cloud.githubusercontent.com
140.82.112.9                  codeload.github.com
140.82.114.21                 collector.github.com
185.199.111.133               desktop.githubusercontent.com
185.199.111.133               favicons.githubusercontent.com
140.82.112.3                  gist.github.com
54.231.226.153                github-cloud.s3.amazonaws.com
54.231.132.121                github-com.s3.amazonaws.com
52.217.198.206                github-production-release-asset-2e65be.s3.amazonaws.com
52.216.78.92                  github-production-repository-file-5c1aeb.s3.amazonaws.com
54.231.136.217                github-production-user-asset-6210df.s3.amazonaws.com
192.0.66.2                    github.blog
140.82.114.4                  github.com
140.82.113.18                 github.community
185.199.110.154               github.githubassets.com
151.101.193.194               github.global.ssl.fastly.net
185.199.108.153               github.io
185.199.111.133               github.map.fastly.net
185.199.108.153               githubstatus.com
140.82.112.25                 live.github.com
185.199.111.133               media.githubusercontent.com
185.199.111.133               objects.githubusercontent.com
13.107.42.16                  pipelines.actions.githubusercontent.com
185.199.110.133               raw.githubusercontent.com
185.199.110.133               user-images.githubusercontent.com
140.82.113.21                 education.github.com
185.199.111.133               private-user-images.githubusercontent.com


# Update time: 2025-01-04T16:06:38+08:00
# Update url: https://raw.hellogithub.com/hosts
# Star me: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End

修改 hosts 文件

hosts 文件在每个系统的位置不一,详情如下:

Windows 系统

C:\Windows\System32\drivers\etc\hosts

Linux 系统

修改文件 /etc/hosts

Mac(苹果电脑)系统

修改文件 /etc/hosts

Android(安卓)系统

/system/etc/hosts

iPhone(iOS)系统

/etc/hosts

修改方法,把第一步的内容复制到文本末尾:

Windows 使用记事本。

Linux、Mac 使用 Root 权限:sudo vi /etc/hosts。

iPhone、iPad 须越狱、Android 必须要 root。

激活生效

大部分情况下是直接生效,如未生效可尝试下面的办法,刷新 DNS:

Windows系统

在 CMD 窗口输入:

ipconfig /flushdns

Linux系统命令

sudo nscd restart,如报错则须安装:sudo apt install nscd 或 sudo /etc/init.d/nscd restart

Mac系命令

sudo killall -HUP mDNSResponder

Tips: 上述方法无效可以尝试重启机器。

自动方式

推荐利用SwitchHosts软件,https://github.com/oldj/SwitchHosts

下载SwitchHosts

image-20250104163508722

以 SwitchHosts 为例,看一下怎么使用的,配置参考下面:

  • ? Hosts 类型: Remote
  • ? Hosts 标题: 随意
  • ? URL: https://raw.hellogithub.com/hosts
  • ? 自动刷新: 最好选 1 小时

image-20250104163621797

image-20250104163724135

结尾

GitHub520项目为广大用户提供了一种简单有效的方法来解决访问github时遇到的加载慢、图裂等问题。通过该项目,用户可以享受到更流畅的浏览体验。

写文不易,如果你都看到了这里,请点个赞和在看,分享给更多的朋友;也别忘了关注星哥玩云!这里有满满的干货分享,还有轻松有趣的技术交流~点个赞、分享给身边的小伙伴,一起成长,一起玩转技术世界吧!

最近发表
标签列表