您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
快速生成并复制RSSHub订阅链接,支持Bilibili、YouTube、X等主流平台
快速生成并复制 RSSHub 订阅链接,支持 Bilibili、YouTube、X 等主流平台的浏览器用户脚本
更多平台正在添加中...
# 克隆仓库
git clone https://github.com/chlorinec/rsshub-monkey-helper.git
cd rsshub-monkey-helper
# 安装依赖
bun install
# 构建
bun run build
# 安装 dist/rsshub-monkey-helper.user.js 到用户脚本管理器
# 开发模式(热重载)
bun dev
# 构建生产版本
bun build
# 预览构建结果
bun preview
src/
├── components/ # UI 组件
│ ├── Panel.tsx # 主面板组件
│ └── RuleItem.tsx # 规则项组件
├── icons/ # SVG 图标
├── rsshub-rules.ts # 平台规则配置
├── platform-detectors.ts # 平台检测逻辑
├── App.tsx # 主应用组件
└── index.tsx # 入口文件
src/rsshub-rules.ts
中添加平台配置:{
id: 'new-platform',
name: '新平台',
icon: newPlatformIcon,
rules: [
{
id: 'rule-id',
name: '规则名称',
desc: '规则描述',
doc: 'https://docs.rsshub.app/...',
genLink: ({ param }) => `/new-platform/${param}`,
preview: '/new-platform/example',
}
]
}
src/platform-detectors.ts
中添加检测逻辑:export function detectParams(platformId: Platform): Record<string, string> {
switch (platformId) {
case 'new-platform':
// 从当前页面 URL 提取参数
return { param: extractFromURL() };
// ...
}
}
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/new-feature
git push origin feature/new-feature
本项目采用 MIT 协议开源。
如果觉得这个项目对你有帮助,请给它一个 ⭐ Star!