diff --git a/README.md b/README.md index dd98ff0..d1ab397 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,32 @@ -# RSSHub Radar +

+RSSHub +

+

RSSHub Radar

-> 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) +## 安装 + + + +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) diff --git a/package.json b/package.json index f59137d..5694253 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/assets/icon128.png b/src/assets/icon128.png new file mode 100644 index 0000000..96a3067 Binary files /dev/null and b/src/assets/icon128.png differ diff --git a/src/assets/icon16.png b/src/assets/icon16.png new file mode 100644 index 0000000..58220ee Binary files /dev/null and b/src/assets/icon16.png differ diff --git a/src/assets/icon48.png b/src/assets/icon48.png new file mode 100644 index 0000000..ef51655 Binary files /dev/null and b/src/assets/icon48.png differ diff --git a/src/assets/manifest.json b/src/assets/manifest.json index b34cd9d..bc8711f 100644 --- a/src/assets/manifest.json +++ b/src/assets/manifest.json @@ -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", diff --git a/src/js/background/rules.js b/src/js/background/rules.js index 66bf505..19489e7 100644 --- a/src/js/background/rules.js +++ b/src/js/background/rules.js @@ -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', }], }, }; \ No newline at end of file diff --git a/src/js/popup/index.js b/src/js/popup/index.js index 7aea549..8f14c5c 100644 --- a/src/js/popup/index.js +++ b/src/js/popup/index.js @@ -10,7 +10,7 @@ function generateList (type, list) {
${item.title}
-
${item.url}
+
${item.url.replace('https://', '').replace('http://', '')}
${item.isDescription ? `文档` :