{"id":19303223,"url":"https://github.com/pboymt/steam520","last_synced_at":"2025-04-07T11:10:00.096Z","repository":{"id":37622494,"uuid":"441836459","full_name":"pboymt/Steam520","owner":"pboymt","description":"启发自GitHub520，由TypeScript编写、Node.js 16+驱动，提供Steam遭到类似Github被干扰的解决方案。（无需安装）","archived":false,"fork":false,"pushed_at":"2024-10-29T08:13:58.000Z","size":4827,"stargazers_count":96,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T09:31:05.574Z","etag":null,"topics":["github520","hosts","steam"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pboymt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-26T07:44:01.000Z","updated_at":"2024-10-29T08:14:02.000Z","dependencies_parsed_at":"2023-12-18T21:01:27.002Z","dependency_job_id":"54e80fad-5293-4994-aff4-9a704bf18ea4","html_url":"https://github.com/pboymt/Steam520","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2FSteam520","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2FSteam520/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2FSteam520/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2FSteam520/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pboymt","download_url":"https://codeload.github.com/pboymt/Steam520/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640465,"owners_count":20971557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github520","hosts","steam"],"created_at":"2024-11-09T23:25:34.207Z","updated_at":"2025-04-07T11:10:00.090Z","avatar_url":"https://github.com/pboymt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Steam520\n\n[![GitHub license](https://img.shields.io/badge/license-GPLv3-blue?style=flat-square)](https://www.gnu.org/licenses/gpl-3.0)\n[![TypeScript Version](https://img.shields.io/github/package-json/dependency-version/pboymt/Steam520/dev/typescript?style=flat-square)](https://typescriptlang.org)\n[![Git Commit](https://img.shields.io/github/last-commit/pboymt/Steam520?style=flat-square)](https://github.com/pboymt/Steam520)\n![GitHub Sponsors](https://img.shields.io/github/sponsors/pboymt?style=flat-square)\n\n## 介绍\n\n本项目启发自[GitHub520](https://github.com/521xueweihan/GitHub520)。\n\n由[TypeScript](https://typescriptlang.org)编写、[Node.js 16+](https://nodejs.org)驱动，提供Steam遭到类似Github被干扰的解决方案。（无需安装）\n\n---\n\n本项目无需安装任何程序，通过修改本地 hosts 文件，试图解决：\n\n- Steam商店 访问速度慢的问题\n- Steam商店 中的图片显示不出的问题\n\n解决不了你知道该骂谁。\n\n## 使用方法\n\n### 手动方式\n\n#### 复制下面的内容\n```bash\n# This file is generated by fetching the ipaddress.com service.\n\n\n# Update time: 2025/4/7 18:12:42\n# Repo URL: https://github.com/pboymt/Steam520\n# Hosts END\n\n```\n\n或直接从链接获取[hosts文件](https://raw.githubusercontent.com/pboymt/Steam520/main/hosts)或[JSON文件](https://raw.githubusercontent.com/pboymt/Steam520/main/hosts)。\n\n上面内容会自动定时更新，保证最新有效。\n\n#### 修改 hosts 文件\n\nhosts 文件在每个系统的位置不一，详情如下：\n\n- Windows 系统：`C:\\Windows\\System32\\drivers\\etc\\hosts`\n- Linux 系统：`/etc/hosts`\n- Mac（苹果电脑）系统：`/etc/hosts`\n- Android（安卓）系统：`/system/etc/hosts`\n- iPhone（iOS）系统：`/etc/hosts`\n\n修改方法，把第一步的内容复制到文本末尾：\n\n1. Windows 使用记事本。\n2. Linux、Mac 使用 Root 权限：`sudo vi /etc/hosts`。\n3. iPhone、iPad 须越狱、Android 必须要 root。\n\n#### 激活生效\n大部分情况下是直接生效，如未生效可尝试下面的办法，刷新 DNS：\n\n1. Windows：在 CMD 窗口输入：`ipconfig /flushdns`\n\n2. Linux 命令：`sudo nscd restart`，如报错则须安装：`sudo apt install nscd` 或 `sudo /etc/init.d/nscd restart`\n\n3. Mac 命令：`sudo killall -HUP mDNSResponder`\n\n**Tips：** 上述方法无效可以尝试重启机器。\n\n### 自动方式\n\n**Tip**：推荐 [SwitchHosts](https://github.com/oldj/SwitchHosts) 工具管理 hosts\n\n以 SwitchHosts 为例，看一下怎么使用的，配置参考下面：\n\n- Title: 随意\n\n- Type: `Remote`\n\n- URL: `https://raw.githubusercontent.com/pboymt/Steam520/main/hosts`\n\n- Auto Refresh: 最好选 `1 hour`\n\n如图：\n\n![](./img/switch-hosts.png)\n\n这样每次 hosts 有更新都能及时进行更新，免去手动更新。\n\n### 2.3 One-liner (适用于类Unix系统)\n\n`sed -i \"/# GitHub520 Host Start/Q\" /etc/hosts \u0026\u0026 curl https://raw.githubusercontent.com/pboymt/Steam520/main/hosts \u003e\u003e /etc/hosts`\n自动更新`/etc/hosts`文件，可以添加到cron定时执行。使用前确保Github520内容在该文件最后部分。\n\n### 2.4 AdGuard Home 用户（自动方式）\n\n在 **过滤器\u003eDNS 封锁清单\u003e添加阻止列表\u003e添加一个自定义列表**，配置如下：\n\n- 名称: 随意\n\n- URL: `https://raw.githubusercontent.com/pboymt/Steam520/main/hosts`（和上面 SwitchHosts 使用的一样）\n\n更新间隔在 **设置\u003e常规设置\u003e过滤器更新间隔（设置一小时一次即可）**，记得勾选上 **使用过滤器和 Hosts 文件以拦截指定域名**。\n\n**Tip**：不要添加在 **DNS 允许清单** 内，只能添加在 **DNS 封锁清单** 才管用。另外，AdGuard for Mac、AdGuard for Windows、AdGuard for Android、AdGuard for IOS 等等 **AdGuard 家族软件** 添加方法均类似。\n\n## TODO\n- [x] 定时自动更新 hosts 内容\n- [ ] hosts 内容无变动不会更新\n- [ ] 寻到最优 IP 解析结果\n\n\n## 开源协议\n\n本项目随便使用的GNU Public License v3，欢迎贡献代码，谢谢！\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboymt%2Fsteam520","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpboymt%2Fsteam520","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboymt%2Fsteam520/lists"}