知乎历史记录 - 全局面板

在全局面板中浏览、搜索和管理你的知乎最近浏览记录。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
Max3
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
2.0.2
Created
2026-02-13
Updated
2026-02-18
Size
49.6 KB
License
MIT
Applies to

知乎历史记录 - 全局面板

此为原知乎历史记录的重构版本,该版本不支持本地存储,数据完全来自知乎 API。

Greasy Fork 总下载量 GitHub Release 从 Greasy Fork 安装 从 Github Release 安装

刷知乎网页版时,最痛苦的事情可能就是:你正在看一个回答时,因为意外刷新了,接着,你就再也找不到它了。🤮

某一天,当我又一次深恶痛绝时,最终写下了这个脚本。后来又使用 vite-plugin-monkey + React 进行了重构。

现在知乎已经提供了网页版最近浏览功能,但只能在专门的页面查看,且没有搜索功能。于是我决定再次重构。

特点

  • 贴近知乎设计风格,支持深色模式*,使用知乎 API 作为数据源
  • 简单的本地搜索(使用 Intl.Segmenter 分词)
  • 全局快捷键打开历史记录面板,无障碍友好
  • 无需额外依赖,复用知乎的 React**

* 尽管如此,脚本的大小仍然不小(50KB 左右)

** 尽管知乎的PC网页端没有提供深色模式,但你可以通过添加 ?theme=dark 来启用它。如果想自动化这一过程,可以使用 maxchang3/userscripts/zhihu-dark-mode。不过,由于知乎的限制,自动切换时部分组件样式不会立即更新,需要刷新页面才能完全切换。

快捷键

  • H - 打开/关闭历史记录面板
  • / - 在面板内打开/关闭搜索框

无障碍操作

  • Tab - 在历史记录面板中切换焦点
    • Shift + Tab - 反向切换焦点
    • 打开面板后,默认聚焦于第一条历史记录
  • 退出面板方式:
    • H - 再次按下以关闭
    • ESC - 直接退出
  • Enter - 打开当前选中的回答

感谢