支持匹配 URL hash

Author: Misaka13514Created Sep 16, 2026Updated Sep 16, 2026

问题描述

Radar 在匹配当前页面的 radar 规则时只使用了 location.pathname,完全忽略了 URL 的 hash 部分:

https://github.com/DIYgod/RSSHub-Radar/blob/97d747020177781b0901efcfcf90b9a7b871125e/src/lib/rsshub.ts#L155-L157

对于使用 hash 路由的单页应用(SPA),页面实际路径全部放在 # 之后,pathname 恒为 /(或一个无意义的固定值),因此这类站点永远无法被 Radar 自动识别、一键订阅。

现状与影响