mirror of
https://github.com/easychen/checkchan-dist.git
synced 2026-08-28 17:45:05 +08:00
更新url匹配正则
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
|
||||
## 最新版本
|
||||
|
||||
- 插件·Chrome/Edge:2022.07.28.17.01 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
|
||||
- Docker镜像(云端+远程桌面二合一):2022.07.28.16.47 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
|
||||
- 文档:2022.07.28.17.01
|
||||
- 插件·Chrome/Edge:2022.07.29.11.52 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
|
||||
- Docker镜像(云端+远程桌面二合一):2022.07.29.11.38 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
|
||||
- 文档:2022.07.29.11.52
|
||||
- 更新日志:[GitHub](https://github.com/easychen/checkchan-dist/commits/main)
|
||||
- 生态:RSSHub浏览器插件整合版([源码](https://github.com/easychen/RSSHub-Radar-with-checkchan) | [下载](https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/download/main/1.7.0.with-checkchan.zip))
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"2022.07.28.16.47"
|
||||
"2022.07.29.11.38"
|
||||
@@ -3,7 +3,7 @@
|
||||
"message": "Check酱"
|
||||
},
|
||||
"appDesc": {
|
||||
"message": "监控页面变动,并发送异动到微信。 Build.2022.07.28.17.01",
|
||||
"message": "监控页面变动,并发送异动到微信。 Build.2022.07.29.11.52",
|
||||
"description":"亦支持http status、json和rss监测。配合自架云端,关电脑后也能运行。"
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,8 @@ async function insert_content( host, url, pathname )
|
||||
{
|
||||
if( host === 'item.jd.com' )
|
||||
{
|
||||
const id = pathname.match(/\/(\d+).html/)[1];
|
||||
const reg = /\/(\d+).html/;
|
||||
const id = Array.isArray(pathname.match(reg)) ? pathname.match(reg)[1]:null;
|
||||
console.log( "id", id );
|
||||
if( !id ) return false;
|
||||
const path = `.price.J-p-${id}`;
|
||||
@@ -25,7 +26,8 @@ async function insert_content( host, url, pathname )
|
||||
|
||||
if( host === 'www.amazon.cn' )
|
||||
{
|
||||
const id = pathname.match(/\/dp\/(.+?)$/)[1];
|
||||
const reg = /\/dp\/(.+?)$/;
|
||||
const id = Array.isArray(pathname.match(reg)) ? pathname.match(reg)[1]:null;
|
||||
console.log( "id", id );
|
||||
if( !id ) return false;
|
||||
const path = `#corePriceDisplay_desktop_feature_div span.a-offscreen`;
|
||||
@@ -52,7 +54,8 @@ async function insert_content( host, url, pathname )
|
||||
|
||||
if( host === 'www.douyin.com' )
|
||||
{
|
||||
const id = pathname.match(/\/user\/(.+)/)[1];
|
||||
const reg = /\/user\/(.+)/;
|
||||
const id = Array.isArray(pathname.match(reg)) ? pathname.match(reg)[1]:null;
|
||||
console.log( "id", id );
|
||||
if( !id ) return false;
|
||||
const path = "div#root > div > div:nth-of-type(2) > div > div > div:nth-of-type(4) > div > div > div > span";
|
||||
@@ -75,7 +78,8 @@ async function insert_content( host, url, pathname )
|
||||
// https://m.weibo.cn/profile/5048301588
|
||||
if( host === 'm.weibo.cn' )
|
||||
{
|
||||
const id = pathname.match(/\/profile\/(.+)/)[1];
|
||||
const reg = /\/profile\/(.+)/;
|
||||
const id = Array.isArray(pathname.match(reg)) ? pathname.match(reg)[1]:null;
|
||||
console.log( "id", id );
|
||||
if( !id ) return false;
|
||||
const path = ".wb-item:nth-of-type(1)";
|
||||
@@ -99,7 +103,8 @@ async function insert_content( host, url, pathname )
|
||||
|
||||
if( host === 'space.bilibili.com' )
|
||||
{
|
||||
const id = pathname.match(/\/(.+)\/video/)[1];
|
||||
const reg = /\/(.+)\/video/;
|
||||
const id = Array.isArray(pathname.match(reg)) ? pathname.match(reg)[1]:null;
|
||||
console.log( "id", id );
|
||||
if( !id ) return false;
|
||||
const path = "div#submit-video-list > ul:nth-of-type(2) > li:nth-of-type(1)";
|
||||
@@ -122,7 +127,8 @@ async function insert_content( host, url, pathname )
|
||||
// .ep-list-wrapper .ep-item:last-child
|
||||
if( host === 'www.bilibili.com' )
|
||||
{
|
||||
const id = pathname.match(/bangumi\/play\/(.+)/)[1];
|
||||
const reg = /bangumi\/play\/(.+)/;
|
||||
const id = Array.isArray(pathname.match(reg)) ? pathname.match(reg)[1]:null;
|
||||
console.log( "id", id );
|
||||
if( !id ) return false;
|
||||
const path = ".ep-list-wrapper .ep-item:last-child";
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
> Check酱支持订阅RSS内容。配合[RSS Hub](https://github.com/DIYgod/RSSHub)可以监测上千内容源。
|
||||
|
||||
| 推荐RSS源 | 浏览器自动发现插件 |
|
||||
| --- | --- |
|
||||
| [RssHub官网🪜](https://docs.rsshub.app/) | RSSHub浏览器插件Check酱整合版[ GitHub下载🪜](https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/tag/main) |
|
||||
| 推荐RSS源 | 浏览器自动发现插件 | 视频教程 |
|
||||
| --- | --- | --- |
|
||||
| [RssHub官网🪜](https://docs.rsshub.app/) | RSSHub浏览器插件Check酱整合版[ GitHub下载🪜](https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/tag/main) | [B站·Check酱+RSSHub使用教程](https://www.bilibili.com/video/BV1JY4y1P71b) |
|
||||
|
||||
# 电商
|
||||
|
||||
|
||||
+3
-3
@@ -20,9 +20,9 @@
|
||||
</ol>
|
||||
<h2>最新版本</h2>
|
||||
<ul>
|
||||
<li>插件·Chrome/Edge:2022.07.28.17.01 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
|
||||
<li>Docker镜像(云端+远程桌面二合一):2022.07.28.16.47 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
|
||||
<li>文档:2022.07.28.17.01</li>
|
||||
<li>插件·Chrome/Edge:2022.07.29.11.52 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
|
||||
<li>Docker镜像(云端+远程桌面二合一):2022.07.29.11.38 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
|
||||
<li>文档:2022.07.29.11.52</li>
|
||||
<li>更新日志:<a href="https://github.com/easychen/checkchan-dist/commits/main">GitHub</a></li>
|
||||
<li>生态:RSSHub浏览器插件整合版(<a href="https://github.com/easychen/RSSHub-Radar-with-checkchan">源码</a> | <a href="https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/download/main/1.7.0.with-checkchan.zip">下载</a>)</li>
|
||||
</ul>
|
||||
|
||||
+3
-3
@@ -9,9 +9,9 @@
|
||||
</ol>
|
||||
<h2>最新版本</h2>
|
||||
<ul>
|
||||
<li>插件·Chrome/Edge:2022.07.28.17.01 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
|
||||
<li>Docker镜像(云端+远程桌面二合一):2022.07.28.16.47 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
|
||||
<li>文档:2022.07.28.17.01</li>
|
||||
<li>插件·Chrome/Edge:2022.07.29.11.52 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
|
||||
<li>Docker镜像(云端+远程桌面二合一):2022.07.29.11.38 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
|
||||
<li>文档:2022.07.29.11.52</li>
|
||||
<li>更新日志:<a href="https://github.com/easychen/checkchan-dist/commits/main">GitHub</a></li>
|
||||
<li>生态:RSSHub浏览器插件整合版(<a href="https://github.com/easychen/RSSHub-Radar-with-checkchan">源码</a> | <a href="https://github.com/easychen/RSSHub-Radar-with-checkchan/releases/download/main/1.7.0.with-checkchan.zip">下载</a>)</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user