This commit is contained in:
DIYgod
2019-07-21 20:04:38 +08:00
parent f326328da5
commit fbc249111d
8 changed files with 46 additions and 6 deletions
+22 -3
View File
@@ -1,13 +1,32 @@
# RSSHub Radar
<p align="center">
<img src="https://i.loli.net/2019/04/23/5cbeb7e41414c.png" alt="RSSHub" width="100">
</p>
<h1 align="center">RSSHub Radar</h1>
> Browser extension that detects available RSS and [RSSHub](https://github.com/DIYgod/RSSHub) in current page
> RSSHub Radar 是一个探测当前页面可用的 RSS 和 [RSSHub](https://github.com/DIYgod/RSSHub) 的浏览器扩展 - 万物皆可 RSS
[![version](https://img.shields.io/chrome-web-store/v/kefjpfngnndepjbopdmoebkipbgkggaa.svg?style=flat-square)](https://chrome.google.com/webstore/detail/kefjpfngnndepjbopdmoebkipbgkggaa)
[![users](https://img.shields.io/chrome-web-store/users/kefjpfngnndepjbopdmoebkipbgkggaa.svg?style=flat-square)](https://chrome.google.com/webstore/detail/kefjpfngnndepjbopdmoebkipbgkggaa)
[![rating](https://img.shields.io/chrome-web-store/rating/kefjpfngnndepjbopdmoebkipbgkggaa.svg?style=flat-square)](https://chrome.google.com/webstore/detail/kefjpfngnndepjbopdmoebkipbgkggaa)
## 介绍
探测当前页面可用的 RSS 和 [RSSHub](https://github.com/DIYgod/RSSHub) 的浏览器扩展
![](https://i.imgur.com/9oZpzJe.jpg)
[Telegram 群](https://t.me/rsshub)
## 安装
<a href="https://chrome.google.com/webstore/detail/kefjpfngnndepjbopdmoebkipbgkggaa"><img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_128x128.png" width="48" /></a>
Chrome 审核中
Firefox 以后可能会有
## 参与我们
补充规则:编辑 [/src/js/background/rules.js](https://github.com/DIYgod/RSSHub-Radar/blob/master/src/js/background/rules.js)
## 相关项目
- [RSSHub](https://github.com/DIYgod/RSSHub)
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "rsshub-radar",
"version": "0.0.1",
"description": "Browser extension that detects available RSS and RSSHub",
"description": "Browser extension to detect available RSS and RSSHub for current page",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack -w --mode=production --progress --display-error-details --colors",
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

+2 -1
View File
@@ -2,8 +2,9 @@
"manifest_version": 2,
"name": "RSSHub Radar",
"description": "Detect available RSS and RSSHub",
"description": "Browser extension to detect available RSS and RSSHub for current page",
"version": "0.1",
"homepage_url": "https://docs.rsshub.app",
"browser_action": {
"default_icon": "rsshub.png",
+20
View File
@@ -144,6 +144,26 @@ module.exports = {
description: 'https://docs.rsshub.app/programming.html#github',
source: '/:user/:repo/:branch/*filepath',
target: '/github/file/:user/:repo/:branch/:filepath',
}, {
title: 'GitHub 仓库 Issue',
description: 'https://docs.rsshub.app/programming.html#github',
source: '/:user/:repo',
target: '/github/issue/:user/:repo',
}, {
title: 'GitHub 仓库 Pull Requests',
description: 'https://docs.rsshub.app/programming.html#github',
source: '/:user/:repo',
target: '/github/pull/:user/:repo',
}, {
title: 'GitHub 仓库 Stars',
description: 'https://docs.rsshub.app/programming.html#github',
source: '/:user/:repo',
target: '/github/stars/:user/:repo',
}, {
title: 'GitHub 仓库 Branches',
description: 'https://docs.rsshub.app/programming.html#github',
source: '/:user/:repo',
target: '/github/branches/:user/:repo',
}],
},
};
+1 -1
View File
@@ -10,7 +10,7 @@ function generateList (type, list) {
<img class="rss-image" src="${item.image || './rsshub.png'}">
<a href="${item.url}" class="rss-info">
<div class="rss-title">${item.title}</div>
<div class="rss-url">${item.url}</div>
<div class="rss-url">${item.url.replace('https://', '').replace('http://', '')}</div>
</a>
${item.isDescription ?
`<a href="${item.url}" class="rss-action">文档</a>` :