A browser extension that transforms zhihu.com into a fully functional VS Code editor interface.

Stars

23

7-day growth

No data

Forks

5

Open issues

0

License

No data

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It creatively reimagines a popular Q&A platform with a developer-centric UI, offering unique features like a stealth mode that mimics C++ source code and a terminal-based comment panel.

Who it is for

  • Developers who frequently browse Zhihu for technical content
  • Office workers seeking to browse social media discreetly
  • Fans of VS Code aesthetics and UX
  • Users interested in productivity tools and browser extensions

Use cases

  • Reading Zhihu while appearing to work in a code editor
  • Immersive developer-friendly browsing with keyboard shortcuts for navigation
  • Quickly accessing comments via a terminal-like interface

Strengths

  • Highly faithful VS Code layout recreation including Activity Bar, Explorer, tabs, and Status Bar
  • Stealth Mode (Alt+V) instantly shows fake C++ thread pool source code
  • Command Palette (Cmd+Shift+P) for fuzzy search and theme switching
  • Supports multiple classic VS Code themes (Dark+, One Dark Pro, Monokai, Light Modern)

Considerations

  • Only available for Chrome/Edge browsers (Manifest V3 extension)
  • Relies on Zhihu's current DOM structure, which may break upon site updates
  • Some native Zhihu features (like video players or rich media) might not be fully supported

README quick start

💻 VSCode Zhihu (知乎 VS Code 皮肤)

VSCode Zhihu 是一款突破性的 Chrome / Edge 浏览器插件,能将知乎(zhihu.com)全量重构为现代化的 VS Code 编辑器界面

无论是在办公室摸鱼、学习技术,还是享受沉浸式的代码化阅读体验,VSCode Zhihu 都能让您以极致优雅的开发者视角浏览知乎!


✨ 核心特性

  • 🎨 VS Code 经典 IDE 布局:完整还原左侧 Activity Bar(活动栏)、Sidebar Explorer(文件树)、多标签页(Tab Bar)、代码行号(Line Numbers)及底部 Status Bar(状态栏)。
  • 📝 代码化内容渲染:知乎首页推荐、全网热榜、问题回答及专栏文章均被智能格式化为结构优雅的 TypeScript / JSON 代码块。
  • 💬 VS Code 终端评论面板 (Terminal Comments Panel)
    • 点击评论自动唤起底部的 VS Code 终端面板,实时执行 zhihu-cli comments 命令。
    • 直连知乎官方 API 实时拉取最新评论与二级嵌套回复(nestedReplies),以树状 ASCII 日志形式清晰展现。
  • 🙈 一键摸鱼老板键 (Stealth Mode)
    • 按下 Alt + V(或 Option + V)瞬间将屏幕伪装为 100% 逼真的现代 C++ 线程池源码。
  • 命令面板 (Command Palette)
    • 按下 Cmd + Shift + P 或 F1 唤起命令面板,支持模糊搜索知乎问题、快速跳转路由及切换主题。
  • 🎨 多款经典 VS Code 主题
    • VS Code Dark+(默认暗黑主题)
    • One Dark Pro
    • Monokai
    • Light Modern(亮色浅色模式)
  • 🔄 无感无限滚动 (Infinite Scroll):向下滑动到底部自动同步加载下一页回答与推荐 Feed,滚动位置平滑保持不跳动。

🚀 安装指引

方式 1:Chrome Web Store 官方商店安装(推荐)

👉 点击前往 Chrome Web Store 直接一键安装

方式 2:开发者模式本地安装

  1. 下载源码:克隆或下载本仓库至本地文件夹:
    git clone https://github.com/fountainfang/vszhihu.git
    
  2. 打开 Chrome 扩展管理: 在浏览器地址栏输入 chrome://extensions 并按回车。
  3. 开启开发者模式: 勾选右上角的 “开发者模式” (Developer mode) 开关。
  4. 加载插件: 点击左上角的 “加载已解压的扩展程序” (Load unpacked) 按钮,选择本项目文件夹目录 /vszhihu
  5. 开始使用: 打开 https://www.zhihu.com 或任意知乎问题/专栏文章页面,即可享受 VS Code 风格!

⌨️ 快捷键指南

快捷键功能描述
Alt + V (或 Option + V)摸鱼老板键:瞬间切换/退出伪装 C++ 源码
Cmd + Shift + P / F1命令面板:搜索知乎、切换主题、跳转路由
点击代码内的 URL / 标题代码跳转:直接在 VS Code 界面中打开该问题/文章
点击 💬 XX 评论终端评论:唤起底部 Terminal 面板查看评论及回复

📂 项目结构

vszhihu/
├── manifest.json         # Manifest V3 扩展配置文件
├── background.js          # 后台 Service Worker
├── content.js             # Content Script 入口脚本
├── README.md              # 项目说明文档
├── styles/
│   ├── vscode.css         # VS Code 界面主布局与组件样式
│   └── themes.css         # 颜色主题定义 (Dark+, One Dark, Monokai, Light)
├── scripts/
│   ├── preload.js         # document_start 零闪烁预加载脚本
│   ├── parser.js          # 知乎 DOM 解析与 TypeScript 代码格式化引擎
│   ├── vscode-ui.js       #

Description

**VSCode Zhihu** 是一款突破性的 Chrome / Edge 浏览器插件,能将知乎(zhihu.com)全量重构为现代化的 **VS Code 编辑器界面**。 无论是在办公室摸鱼、学习技术,还是享受沉浸式的代码化阅读体验,VSCode Zhihu 都能让您以极致优雅的开发者视角浏览知乎!

Related repositories

Similar projects matched by category, topics, and programming language.

mereyabdenbekuly-ctrl
Featured
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI & Machine LearningAI Agents
859
vercel-labs
Featured
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

Developer ToolsCode Quality & Build
1,985
jamesob
Featured
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI & Machine LearningLarge Language Models
1,660