网站首页 > 文章精选 正文
简单一招,解决全球最大同性交友网站访问时加载慢、图裂等问题
前言
对于在大陆许多喜欢使用全球最大同性交友网站的用户来说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时遇到的加载慢、图裂等问题。通过该项目,用户可以享受到更流畅的浏览体验。
写文不易,如果你都看到了这里,请点个赞和在看,分享给更多的朋友;也别忘了关注星哥玩云!这里有满满的干货分享,还有轻松有趣的技术交流~点个赞、分享给身边的小伙伴,一起成长,一起玩转技术世界吧!
- 上一篇: 找不到动态链接库?
- 下一篇: 程序员最大社交网站github图片显示异常的解决方法
猜你喜欢
- 2025-01-18 常见的nVidia显卡问题及其解决方法
- 2025-01-18 GitHub正式登录Android和iOS!随时随地看代码合并pull请求
- 2025-01-18 GitHub 加速下载,从此摆脱下载慢的折磨
- 2025-01-18 新手小白Github够用教程(必备)
- 2025-01-18 爆炸 GitHub 拉代码 22端口被墙紧急解决方案
- 2025-01-18 解决github下载慢的问题
- 2025-01-18 一定要学会的Github技巧!找项目、可不止加速这么简单
- 2025-01-18 github the remote end hung up unexpectedly 的解决办法
- 2025-01-18 Python代码运行报错怎么办?
- 2025-01-18 只因员工在伊朗打开了电脑,GitHub把整个公司账号冻结了
- 最近发表
- 标签列表
-
- newcoder (56)
- 字符串的长度是指 (45)
- drawcontours()参数说明 (60)
- unsignedshortint (59)
- postman并发请求 (47)
- python列表删除 (50)
- 左程云什么水平 (56)
- 计算机网络的拓扑结构是指() (45)
- 稳压管的稳压区是工作在什么区 (45)
- 编程题 (64)
- postgresql默认端口 (66)
- 数据库的概念模型独立于 (48)
- 产生系统死锁的原因可能是由于 (51)
- 数据库中只存放视图的 (62)
- 在vi中退出不保存的命令是 (53)
- 哪个命令可以将普通用户转换成超级用户 (49)
- noscript标签的作用 (48)
- 联合利华网申 (49)
- swagger和postman (46)
- 结构化程序设计主要强调 (53)
- 172.1 (57)
- apipostwebsocket (47)
- 唯品会后台 (61)
- 简历助手 (56)
- offshow (61)