支持匹配 URL hash
Author: Misaka13514Created Sep 16, 2026Updated Sep 16, 2026
问题描述
Radar 在匹配当前页面的 radar 规则时只使用了 location.pathname,完全忽略了 URL 的 hash 部分:
对于使用 hash 路由的单页应用(SPA),页面实际路径全部放在 # 之后,pathname 恒为 /(或一个无意义的固定值),因此这类站点永远无法被 Radar 自动识别、一键订阅。
现状与影响
- f95zone 的帖子页
https://f95zone.to/threads/{thread}/#post-{id}在 RSSHub 里只能写radar: [],并在文档中注明「Radar 无法提取 URL hash 中的信息」 - RSSHub 仓库里已存在 hash 形式的
source实际上都不生效:
Source: DIYgod/RSSHub-Radar