Skip to content

Commit 5f6ba40

Browse files
committed
添加动态流的JSON下载和RSS上传
1 parent 4c4bb7c commit 5f6ba40

17 files changed

+108
-28
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
## 最新版本
1414

15-
- 插件·Chrome/Edge:2022.07.29.13.32 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
16-
- Docker镜像(云端+远程桌面二合一):2022.07.29.13.10 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
17-
- 文档:2022.07.29.13.32
15+
- 插件·Chrome/Edge:2022.07.29.21.17 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
16+
- Docker镜像(云端+远程桌面二合一):2022.07.29.21.07 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
17+
- 文档:2022.07.29.21.17
1818
- 更新日志:[GitHub](https://github.com/easychen/checkchan-dist/commits/main)
1919
- 生态: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)
2020

build.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022.07.29.13.32"
1+
"2022.07.29.21.17"

ckc.zip

989 KB
Binary file not shown.

docker.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022.07.29.13.10"
1+
"2022.07.29.21.07"

docker/src/chrome_extension/_locales/zh_CN/messages.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"message": "Check酱"
44
},
55
"appDesc": {
6-
"message": "监控页面变动,并发送异动到微信。 Build.2022.07.29.13.32",
6+
"message": "监控页面变动,并发送异动到微信。 Build.2022.07.29.21.17",
77
"description":"亦支持http status、json和rss监测。配合自架云端,关电脑后也能运行。"
88
}
99
}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"files": {
3-
"main.css": "/static/css/main.91bd4579.chunk.css",
4-
"main.js": "/static/js/main.619c6928.chunk.js",
3+
"main.css": "/static/css/main.4402c922.chunk.css",
4+
"main.js": "/static/js/main.3dc32983.chunk.js",
55
"runtime-main.js": "/static/js/runtime-main.17191aad.js",
66
"static/css/2.65280f5c.chunk.css": "/static/css/2.65280f5c.chunk.css",
7-
"static/js/2.79de070a.chunk.js": "/static/js/2.79de070a.chunk.js",
7+
"static/js/2.2ebc3ddc.chunk.js": "/static/js/2.2ebc3ddc.chunk.js",
88
"index.html": "/index.html",
9-
"precache-manifest.8d84c6774e13bf8cd9ab3a919dfb06d0.js": "/precache-manifest.8d84c6774e13bf8cd9ab3a919dfb06d0.js",
9+
"precache-manifest.5369c3afbc35260526173021501694af.js": "/precache-manifest.5369c3afbc35260526173021501694af.js",
1010
"service-worker.js": "/service-worker.js",
1111
"static/media/index.scss": "/static/media/icons-20.cef8cdbb.woff"
1212
},
1313
"entrypoints": [
1414
"static/js/runtime-main.17191aad.js",
1515
"static/css/2.65280f5c.chunk.css",
16-
"static/js/2.79de070a.chunk.js",
17-
"static/css/main.91bd4579.chunk.css",
18-
"static/js/main.619c6928.chunk.js"
16+
"static/js/2.2ebc3ddc.chunk.js",
17+
"static/css/main.4402c922.chunk.css",
18+
"static/js/main.3dc32983.chunk.js"
1919
]
2020
}

docker/src/chrome_extension/content.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function insert_content( host, url, pathname )
4949
const ret = await chrome.runtime.sendMessage({action: "redirect","url":url,"tabid":null},);
5050
}
5151
// document.querySelector(".gzh-box2").appendChild( button );
52-
document.body.appendChild( button );
52+
document.body?.appendChild( button );
5353
}
5454

5555
if( host === 'www.douyin.com' )
@@ -71,7 +71,7 @@ async function insert_content( host, url, pathname )
7171
const ret = await chrome.runtime.sendMessage({action: "redirect","url":url,"tabid":null},);
7272
}
7373
// document.querySelector("div#root > div > div:nth-of-type(2) > div > div > div:nth-of-type(4) > div > div").appendChild( button );
74-
document.body.appendChild( button );
74+
document.body?.appendChild( button );
7575

7676
}
7777

@@ -97,7 +97,7 @@ async function insert_content( host, url, pathname )
9797
}
9898
// await sleep(1000);
9999
// document.querySelector(".prf-handle.m-box").appendChild( button );
100-
document.body.appendChild( button );
100+
document.body?.appendChild( button );
101101

102102
}
103103

@@ -120,7 +120,7 @@ async function insert_content( host, url, pathname )
120120

121121
const ret = await chrome.runtime.sendMessage({action: "redirect","url":url,"tabid":null},);
122122
}
123-
document.body.appendChild( button );
123+
document.body?.appendChild( button );
124124

125125
}
126126

@@ -144,7 +144,7 @@ async function insert_content( host, url, pathname )
144144

145145
const ret = await chrome.runtime.sendMessage({action: "redirect","url":url,"tabid":null},);
146146
}
147-
document.body.appendChild( button );
147+
document.body?.appendChild( button );
148148

149149
}
150150

@@ -173,7 +173,7 @@ function zcn_insert_button(path)
173173
const ret = await chrome.runtime.sendMessage({action: "redirect","url":url,"tabid":null},);
174174
}
175175
// document.querySelector("#corePriceDisplay_desktop_feature_div .a-price").appendChild( button );
176-
document.body.appendChild( button );
176+
document.body?.appendChild( button );
177177
}
178178

179179

@@ -191,7 +191,7 @@ function jd_insert_button(path)
191191
const ret = await chrome.runtime.sendMessage({action: "redirect","url":url,"tabid":null},);
192192
}
193193
// document.querySelector(".p-price").appendChild( button );
194-
document.body.appendChild( button );
194+
document.body?.appendChild( button );
195195
}
196196

197197
function sleep(ms) {
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="zh-cn"><head><meta charset="utf-8"/><link rel="icon" href="/logo.color.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="web content monitor"/><link rel="apple-touch-icon" href="logo.color.png"/><link rel="manifest" href="/manifest.json"/><title>...</title><link rel="stylesheet" href="/tailwind.min.css"><link href="/static/css/2.65280f5c.chunk.css" rel="stylesheet"><link href="/static/css/main.91bd4579.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/static/js/runtime-main.17191aad.js"></script><script src="/static/js/2.79de070a.chunk.js"></script><script src="/static/js/main.619c6928.chunk.js"></script></body></html>
1+
<!doctype html><html lang="zh-cn"><head><meta charset="utf-8"/><link rel="icon" href="/logo.color.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="web content monitor"/><link rel="apple-touch-icon" href="logo.color.png"/><link rel="manifest" href="/manifest.json"/><title>...</title><link rel="stylesheet" href="/tailwind.min.css"><link href="/static/css/2.65280f5c.chunk.css" rel="stylesheet"><link href="/static/css/main.4402c922.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/static/js/runtime-main.17191aad.js"></script><script src="/static/js/2.2ebc3ddc.chunk.js"></script><script src="/static/js/main.3dc32983.chunk.js"></script></body></html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
self.__precacheManifest = (self.__precacheManifest || []).concat([
2+
{
3+
"revision": "5742dd22ec1ec5dc3cf63cb8db4a49a5",
4+
"url": "/index.html"
5+
},
6+
{
7+
"revision": "7caab11e9d9191a16588",
8+
"url": "/static/css/2.65280f5c.chunk.css"
9+
},
10+
{
11+
"revision": "921741b7021619d19c77",
12+
"url": "/static/css/main.4402c922.chunk.css"
13+
},
14+
{
15+
"revision": "7caab11e9d9191a16588",
16+
"url": "/static/js/2.2ebc3ddc.chunk.js"
17+
},
18+
{
19+
"revision": "921741b7021619d19c77",
20+
"url": "/static/js/main.3dc32983.chunk.js"
21+
},
22+
{
23+
"revision": "4d30565b04f5f2725c56",
24+
"url": "/static/js/runtime-main.17191aad.js"
25+
},
26+
{
27+
"revision": "05f1cdadfe476395f60e233b15c22155",
28+
"url": "/static/media/icons-16.05f1cdad.eot"
29+
},
30+
{
31+
"revision": "3c1c220e7a18286503fb431c7a7fe183",
32+
"url": "/static/media/icons-16.3c1c220e.woff"
33+
},
34+
{
35+
"revision": "3cde8748332d1de6b1ae1c2dc5850754",
36+
"url": "/static/media/icons-16.3cde8748.ttf"
37+
},
38+
{
39+
"revision": "0a5c76518a68c185baa2c6744456918c",
40+
"url": "/static/media/icons-20.0a5c7651.eot"
41+
},
42+
{
43+
"revision": "51ec31f302d0072808e1f83f85fea4cd",
44+
"url": "/static/media/icons-20.51ec31f3.ttf"
45+
},
46+
{
47+
"revision": "cef8cdbb9d0ba82e6e19fb0eeba2ac3d",
48+
"url": "/static/media/icons-20.cef8cdbb.woff"
49+
}
50+
]);

docker/src/chrome_extension/service-worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
1515

1616
importScripts(
17-
"/precache-manifest.8d84c6774e13bf8cd9ab3a919dfb06d0.js"
17+
"/precache-manifest.5369c3afbc35260526173021501694af.js"
1818
);
1919

2020
self.addEventListener('message', (event) => {

docker/src/chrome_extension/static/css/main.4402c922.chunk.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/src/chrome_extension/static/js/2.2ebc3ddc.chunk.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/src/chrome_extension/static/js/main.3dc32983.chunk.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ <h1>Check酱</h1>
2020
</ol>
2121
<h2>最新版本</h2>
2222
<ul>
23-
<li>插件·Chrome/Edge:2022.07.29.13.32 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
24-
<li>Docker镜像(云端+远程桌面二合一):2022.07.29.13.10 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
25-
<li>文档:2022.07.29.13.32</li>
23+
<li>插件·Chrome/Edge:2022.07.29.21.17 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
24+
<li>Docker镜像(云端+远程桌面二合一):2022.07.29.21.07 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
25+
<li>文档:2022.07.29.21.17</li>
2626
<li>更新日志:<a href="https://github.com/easychen/checkchan-dist/commits/main">GitHub</a></li>
2727
<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>
2828
</ul>

readme.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ <h1>Check酱</h1>
99
</ol>
1010
<h2>最新版本</h2>
1111
<ul>
12-
<li>插件·Chrome/Edge:2022.07.29.13.32 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
13-
<li>Docker镜像(云端+远程桌面二合一):2022.07.29.13.10 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
14-
<li>文档:2022.07.29.13.32</li>
12+
<li>插件·Chrome/Edge:2022.07.29.21.17 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
13+
<li>Docker镜像(云端+远程桌面二合一):2022.07.29.21.07 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
14+
<li>文档:2022.07.29.21.17</li>
1515
<li>更新日志:<a href="https://github.com/easychen/checkchan-dist/commits/main">GitHub</a></li>
1616
<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>
1717
</ul>

rss-upload/rss.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
// $kv = new SaeKV();
4+
// $rss = $kv->get( 'rss' );
5+
$rss = file_get_contents("rss.xml");
6+
7+
header('Content-Type: application/rss+xml; charset=utf-8');
8+
echo $rss;

rss-upload/rss_upload.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
header('Access-Control-Allow-Origin: *');
4+
header('Access-Control-Allow-Methods: GET, POST');
5+
header("Access-Control-Allow-Headers: X-Requested-With");
6+
7+
if (isset($_POST['rss']) && strlen($_POST['rss']) > 0) {
8+
// sae
9+
// $kv = new SaeKV();
10+
// $kv->set('rss', $_POST['rss']);
11+
12+
// 保存到文件
13+
file_put_contents("rss.xml", $_POST['rss']);
14+
die("rss saved");
15+
} else {
16+
die("rss not found");
17+
}
18+
19+
print_r($_POST);

0 commit comments

Comments
 (0)