{"id":28050643,"url":"https://github.com/honwhy/wechatreaderenhancer","last_synced_at":"2025-07-18T10:33:06.167Z","repository":{"id":291812971,"uuid":"978877567","full_name":"honwhy/WeChatReaderEnhancer","owner":"honwhy","description":"公众号阅读增强插件是一款 Chrome 浏览器扩展，旨在提升用户阅读微信公众号文章的体验。通过自动生成文章的结构化目录，让您轻松了解文章结构、快速导航到感兴趣的部分，并在阅读长文时保持位置感知。","archived":false,"fork":false,"pushed_at":"2025-07-03T13:55:33.000Z","size":2153,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T14:50:44.998Z","etag":null,"topics":["ai","chrome-extension","wechat"],"latest_commit_sha":null,"homepage":"https://wxreader.honwhy.wang","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/honwhy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-06T16:38:03.000Z","updated_at":"2025-07-03T13:55:36.000Z","dependencies_parsed_at":"2025-06-01T17:25:06.362Z","dependency_job_id":"d795fa06-4dcd-4de5-8e7f-0004fa455e7b","html_url":"https://github.com/honwhy/WeChatReaderEnhancer","commit_stats":null,"previous_names":["honwhy/wechatreaderenhancer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/honwhy/WeChatReaderEnhancer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honwhy%2FWeChatReaderEnhancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honwhy%2FWeChatReaderEnhancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honwhy%2FWeChatReaderEnhancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honwhy%2FWeChatReaderEnhancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/honwhy","download_url":"https://codeload.github.com/honwhy/WeChatReaderEnhancer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honwhy%2FWeChatReaderEnhancer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265742636,"owners_count":23820873,"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":["ai","chrome-extension","wechat"],"created_at":"2025-05-12T00:37:43.819Z","updated_at":"2025-07-18T10:33:06.132Z","avatar_url":"https://github.com/honwhy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e公众号阅读增强插件 (WeChat Reader Enhancer)\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://web.okjike.com/u/ec41d7d5-407d-4395-ac8a-bd0f04fb202c\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/即刻-Jike-yellow\" alt=\"即刻\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://x.com/huangzh65903362\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Twitter-X-black\" alt=\"推特X\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://space.bilibili.com/444418069\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Bilibili-哔哩哔哩-pink\" alt=\"哔哩哔哩\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.xiaohongshu.com/user/profile/62aeebfc000000001b003dcc\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/小红书-Xiaohongshu-red\" alt=\"小红书\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[![Build and Release](https://github.com/honwhy/WeChatReaderEnhancer/actions/workflows/release-workflow.yml/badge.svg)](https://github.com/honwhy/WeChatReaderEnhancer/actions/workflows/release-workflow.yml)\n\n## 📖 项目简介\n\n公众号阅读增强插件是一款 Chrome 浏览器扩展，旨在提升用户在电脑上阅读微信公众号文章的体验。本插件提供多种功能增强，让阅读体验更加舒适高效。\n\n### 核心功能\n\n- **文章目录导航**：自动生成结构化目录，轻松了解文章结构并快速跳转\n- **图片查看增强**：点击文章图片可放大查看，支持全屏浏览\n- **阅读位置追踪**：滚动文章时，目录中自动高亮当前阅读位置\n- **界面定制优化**：精心设计的UI，不影响原文阅读体验\n\n![首页](./docs/image/home.png)\n\n![目录结构化](./docs/image/1.png)\n\n![图片放大预览](./docs/image/2.png)\n\n## ✨ 功能详解\n\n### 文章目录导航\n\n- **自动结构化**：智能识别文章中的标题层级，生成结构化目录\n- **快速跳转**：点击目录项直接跳转到文章对应位置，支持平滑滚动\n- **实时位置追踪**：根据阅读位置自动高亮对应目录项\n- **折叠与展开**：支持多级目录的折叠与展开，方便浏览长文结构\n- **界面适应**：可展开/折叠的侧栏设计，不占用阅读空间\n\n### 图片查看增强\n\n- **一键放大**：点击文章内任意图片，即可放大查看\n- **高清显示**：自动获取图片高清版本，提供最佳观看体验\n- **简洁控制**：简单的交互设计，点击图片外区域或ESC键即可关闭\n- **自动适配**：适配文章中的各种图片格式和大小\n\n## 🚀 安装方式\n\n### 从 Chrome 网上应用店安装（推荐）\n\n1. 访问[Chrome 网上应用店](https://chrome.google.com/webstore/category/extensions)\n2. 搜索\"公众号阅读增强插件\"\n3. 点击\"添加到 Chrome\"按钮\n\n### 从 Microsoft Edge 加载项商店安装\n\n1. 访问[Microsoft Edge 加载项商店](https://microsoftedge.microsoft.com/addons/Microsoft-Edge-Extensions-Home) (链接待插件审核通过后更新)\n2. 搜索\"公众号阅读增强插件\"\n3. 点击\"获取\"按钮\n\n### 开发者安装\n\n1. 克隆仓库\n\n   ```bash\n   git clone https://github.com/honwhy/WeChatReaderEnhancer.git\n   cd WeChatReaderEnhancer\n   ```\n\n2. 安装依赖\n\n   ```bash\n   npm install\n   ```\n\n3. 构建项目\n\n   ```bash\n   npm run build\n   ```\n\n4. 在 Chrome 浏览器中加载扩展\n   - 打开 chrome://extensions/\n   - 启用\"开发者模式\"\n   - 点击\"加载已解压的扩展程序\"\n   - 选择项目的 `dist` 目录\n\n## 🔧 使用指南\n\n### 文章目录功能\n\n1. 安装插件后访问任意微信公众号文章\n2. 插件会自动在页面左侧生成目录面板\n3. 点击目录项可跳转到相应位置\n4. 点击标题前的图标可展开或折叠子目录\n5. 点击竖向\"文章目录\"文字或展开按钮可展开折叠状态的目录\n\n### 图片查看功能\n\n1. 点击文章中的任意图片即可放大查看\n2. 图片查看模式下，点击图片外的暗色区域可关闭查看器\n3. 按ESC键也可关闭图片查看器\n\n## 📂 项目结构\n\n```\nWeChatReaderEnhancer/\n├── src/                   # 源代码\n│   ├── background/        # 背景脚本\n│   ├── composable/        # Hooks\n│   ├── content/           # 内容脚本（目录、图片查看器等）\n│   ├── popup/             # 弹出窗口\n│   ├── styles/            # 样式文件\n│   ├── types/             # TypeScript类型定义\n│   └── utils/             # 工具函数\n├── public/                # 静态资源\n├── dist/                  # 构建输出\n├── docs/                  # 文档\n└── README.md              # 项目说明\n```\n\n## 🔨 开发指南\n\n### 环境要求\n\n- Node.js 14.0 或更高版本\n- npm 6.0 或更高版本\n\n### 开发流程\n\n1. 克隆仓库并安装依赖\n\n   ```bash\n   git clone https://github.com/honwhy/WeChatReaderEnhancer.git\n   cd WeChatReaderEnhancer\n   npm install\n   ```\n\n2. 启动开发服务器（自动监听文件变化并重新构建）\n\n   ```bash\n   pnpm dev\n   ```\n\n3. 构建生产版本\n   ```bash\n   pnpm zip\n   ```\n\n### 调试扩展\n\n1. 在Chrome中打开 chrome://extensions/\n2. 启用\"开发者模式\"\n3. 点击\"加载已解压的扩展程序\"，选择项目的`.output/chrome-mv3-dev`目录\n4. 访问任意微信公众号文章测试功能\n\n## 🐛 常见问题\n\n**Q: 为什么某些文章没有显示目录？**\nA: 插件依赖文章中的HTML标题标签来生成目录。如果文章没有使用标准的h1-h6标签，可能无法正确生成目录。\n\n**Q: 图片查看器不工作怎么办？**\nA: 确保您点击的是文章正文中的图片，广告或其他特殊图片可能不支持查看功能。\n\n**Q: 插件影响页面加载速度吗？**\nA: 插件经过性能优化，对页面加载速度影响极小。它仅在页面完全加载后开始工作。\n\n## 📄 许可证\n\n本项目采用 [MIT 许可证](LICENSE)。\n\n## 📞 联系方式\n\n- 项目仓库: [GitHub](https://github.com/honwhy/WeChatReaderEnhancer)\n- 问题反馈: [Issues](https://github.com/honwhy/WeChatReaderEnhancer/issues)\n- 关注开发者:\n  - [即刻](https://web.okjike.com/u/ec41d7d5-407d-4395-ac8a-bd0f04fb202c)\n  - [推特X](https://x.com/huangzh65903362)\n  - [哔哩哔哩](https://space.bilibili.com/444418069)\n  - [小红书](https://www.xiaohongshu.com/user/profile/62aeebfc000000001b003dcc)\n\n## 🙏 鸣谢\n\n- [medium-zoom](https://github.com/francoischalifour/medium-zoom) - 提供优秀的图片缩放功能\n- [linkify-it](https://github.com/markdown-it/linkify-it) - 提供高效的链接识别功能\n\n## ☕ Buy me coffee\n\n\u003cp\u003e\n  \u003cimg height=\"300\" hspace=\"10\" src=\"https://honwhy.wang/_astro/wechat-code.A55whMn2_ZxE8DN.webp\"\u003e\n  \u003cimg height=\"300\" hspace=\"10\" src=\"https://honwhy.wang/_astro/alipay-code.6zuraIYy_dWeg2.webp\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonwhy%2Fwechatreaderenhancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhonwhy%2Fwechatreaderenhancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonwhy%2Fwechatreaderenhancer/lists"}