Skip to content

Commit a5cc128

Browse files
committed
dom监测支持指定前后台
1 parent b4fe96f commit a5cc128

17 files changed

+103
-27
lines changed

README.md

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

1313
## 最新版本
1414

15-
- 插件·Chrome/Edge:2022.08.16.14.33 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
16-
- Docker镜像(云端+远程桌面二合一):2022.08.16.13.58 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
17-
- 文档:2022.08.16.14.33
15+
- 插件·Chrome/Edge:2022.08.16.16.52 [下载](ckc.zip) ([Github下载地址,无需注册](https://github.com/easychen/checkchan-dist/raw/master/ckc.zip))
16+
- Docker镜像(云端+远程桌面二合一):2022.08.16.16.42 [Docker Hub](https://hub.docker.com/repository/docker/easychen/checkchan)
17+
- 文档:2022.08.16.16.52
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

@@ -231,7 +231,6 @@ services:
231231
#- "SNAP_FULL=1"
232232
- "TZ=Asia/Chongqing"
233233
# - "WEBHOOK_URL=http://..." # 云端 Webhook地址,不需要则不用设置
234-
# - "PROXY_SERVER=http://proxy.ip:port" # 代理服务器地址,目前仅DOM监测支持代理
235234
ports:
236235
- "5900:5900"
237236
- "8080:8080"
@@ -335,6 +334,13 @@ Check酱自架云端支持对网页(dom)类型任务进行截图,可以通
335334
- 截图功能需要较大的内存,部分服务器可能会报错
336335
- 云端网络和本地不同,可能会超时失败,请适当增加延时,并将取消完整截图
337336

337+
### RSS上行接口
338+
339+
Check酱自架云端内置了动态页面RSS上行用的接口:
340+
341+
- RSS上行地址为: `http://$ip:$port/rss/upload?key=$api_key`
342+
- RSS Feed地址为:`http://$ip:$port/image/rss.xml?key=$api_key`
343+
338344
### 云端任务的安全性
339345

340346
Check酱云端任务的原理是将cookie同步到云端,然后用浏览器查看,本质和用户操作一样。但因为出口IP可能是机房和数据中心,频次太高也有被风控的可能。如果将云端部署在家里,则和在家用电脑访问效果一样。

README.tpl.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ services:
231231
#- "SNAP_FULL=1"
232232
- "TZ=Asia/Chongqing"
233233
# - "WEBHOOK_URL=http://..." # 云端 Webhook地址,不需要则不用设置
234-
# - "PROXY_SERVER=http://proxy.ip:port" # 代理服务器地址,目前仅DOM监测支持代理
235234
ports:
236235
- "5900:5900"
237236
- "8080:8080"
@@ -335,6 +334,13 @@ Check酱自架云端支持对网页(dom)类型任务进行截图,可以通
335334
- 截图功能需要较大的内存,部分服务器可能会报错
336335
- 云端网络和本地不同,可能会超时失败,请适当增加延时,并将取消完整截图
337336

337+
### RSS上行接口
338+
339+
Check酱自架云端内置了动态页面RSS上行用的接口:
340+
341+
- RSS上行地址为: `http://$ip:$port/rss/upload?key=$api_key`
342+
- RSS Feed地址为:`http://$ip:$port/image/rss.xml?key=$api_key`
343+
338344
### 云端任务的安全性
339345

340346
Check酱云端任务的原理是将cookie同步到云端,然后用浏览器查看,本质和用户操作一样。但因为出口IP可能是机房和数据中心,频次太高也有被风控的可能。如果将云端部署在家里,则和在家用电脑访问效果一样。

build.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022.08.16.14.33"
1+
"2022.08.16.16.52"

ckc.zip

988 KB
Binary file not shown.

docker-compose.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
chrome:
4-
build: ./
4+
image: easychen/checkchan:latest
55
volumes:
66
- "./data:/checkchan/data"
77
environment:
@@ -15,7 +15,8 @@ services:
1515
- "ERROR_IMAGE=NORMAL" # NONE,NORMAL,FULL
1616
#- "SNAP_URL_BASE=http://..."
1717
#- "SNAP_FULL=1"
18-
- TZ=Asia/Chongqing
18+
# - "WEBHOOK_URL=http://..." # 云端 Webhook地址,不需要则不用设置
19+
- "TZ=Asia/Chongqing"
1920
ports:
2021
- "5900:5900"
2122
- "8080:8080"

docker.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022.08.16.13.58"
1+
"2022.08.16.16.42"

docker/docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ services:
1515
- "ERROR_IMAGE=NORMAL" # NONE,NORMAL,FULL
1616
#- "SNAP_URL_BASE=http://..."
1717
#- "SNAP_FULL=1"
18-
- TZ=Asia/Chongqing
18+
# - "WEBHOOK_URL=http://..." # 云端 Webhook地址,不需要则不用设置
19+
- "TZ=Asia/Chongqing"
1920
ports:
2021
- "5900:5900"
2122
- "8080:8080"

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.08.16.14.33",
6+
"message": "监控页面变动,并发送异动到微信。 Build.2022.08.16.16.52",
77
"description":"亦支持http status、json和rss监测。配合自架云端,关电脑后也能运行。"
88
}
99
}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"files": {
33
"main.css": "/static/css/main.0e42becb.chunk.css",
4-
"main.js": "/static/js/main.757d352b.chunk.js",
4+
"main.js": "/static/js/main.111fd7fa.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.465e7d2f.chunk.js": "/static/js/2.465e7d2f.chunk.js",
7+
"static/js/2.efeb2403.chunk.js": "/static/js/2.efeb2403.chunk.js",
88
"index.html": "/index.html",
9-
"precache-manifest.0e2f079fe511bc66325b74a15f7d76de.js": "/precache-manifest.0e2f079fe511bc66325b74a15f7d76de.js",
9+
"precache-manifest.353e117902086cc449fbc29929e8e0e5.js": "/precache-manifest.353e117902086cc449fbc29929e8e0e5.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.465e7d2f.chunk.js",
16+
"static/js/2.efeb2403.chunk.js",
1717
"static/css/main.0e42becb.chunk.css",
18-
"static/js/main.757d352b.chunk.js"
18+
"static/js/main.111fd7fa.chunk.js"
1919
]
2020
}

docker/src/chrome_extension/background.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ chrome.runtime.onMessage.addListener( (request, sender, sendResponse) => {
222222
if (request.action === "fetch")
223223
{
224224
(async () =>{
225-
const tab = await chrome.tabs.create({"url":request.url,"active":false,"pinned":true});
225+
const tab = await chrome.tabs.create({"url":request.url,"active":request.tab_activity=='front',"pinned":true});
226226

227227
// console.log("request",request);
228228
if( request.ua )
+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.0e42becb.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.465e7d2f.chunk.js"></script><script src="/static/js/main.757d352b.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.0e42becb.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.efeb2403.chunk.js"></script><script src="/static/js/main.111fd7fa.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": "389e7eae73eece921b8d636a2d888771",
4+
"url": "/index.html"
5+
},
6+
{
7+
"revision": "c8bb465b64dc56df869f",
8+
"url": "/static/css/2.65280f5c.chunk.css"
9+
},
10+
{
11+
"revision": "af794c1455aa4df12773",
12+
"url": "/static/css/main.0e42becb.chunk.css"
13+
},
14+
{
15+
"revision": "c8bb465b64dc56df869f",
16+
"url": "/static/js/2.efeb2403.chunk.js"
17+
},
18+
{
19+
"revision": "af794c1455aa4df12773",
20+
"url": "/static/js/main.111fd7fa.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.0e2f079fe511bc66325b74a15f7d76de.js"
17+
"/precache-manifest.353e117902086cc449fbc29929e8e0e5.js"
1818
);
1919

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

docker/src/chrome_extension/static/js/2.efeb2403.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.111fd7fa.chunk.js

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

index.html

+9-4
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.08.16.14.33 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
24-
<li>Docker镜像(云端+远程桌面二合一):2022.08.16.13.58 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
25-
<li>文档:2022.08.16.14.33</li>
23+
<li>插件·Chrome/Edge:2022.08.16.16.52 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
24+
<li>Docker镜像(云端+远程桌面二合一):2022.08.16.16.42 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
25+
<li>文档:2022.08.16.16.52</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>
@@ -149,7 +149,6 @@ <h4>通过 Docker-compose 启动</h4>
149149
<span class="pl-c"><span class="pl-c">#</span>- "SNAP_FULL=1"</span>
150150
- <span class="pl-s"><span class="pl-pds">"</span>TZ=Asia/Chongqing<span class="pl-pds">"</span></span>
151151
<span class="pl-c"><span class="pl-c">#</span> - "WEBHOOK_URL=http://..." # 云端 Webhook地址,不需要则不用设置</span>
152-
<span class="pl-c"><span class="pl-c">#</span> - "PROXY_SERVER=http://proxy.ip:port" # 代理服务器地址,目前仅DOM监测支持代理</span>
153152
<span class="pl-ent">ports</span>:
154153
- <span class="pl-s"><span class="pl-pds">"</span>5900:5900<span class="pl-pds">"</span></span>
155154
- <span class="pl-s"><span class="pl-pds">"</span>8080:8080<span class="pl-pds">"</span></span>
@@ -208,6 +207,12 @@ <h3>云端截图</h3>
208207
<li>截图功能需要较大的内存,部分服务器可能会报错</li>
209208
<li>云端网络和本地不同,可能会超时失败,请适当增加延时,并将取消完整截图</li>
210209
</ul>
210+
<h3>RSS上行接口</h3>
211+
<p>Check酱自架云端内置了动态页面RSS上行用的接口:</p>
212+
<ul>
213+
<li>RSS上行地址为: <code class="notranslate">http://$ip:$port/rss/upload?key=$api_key</code></li>
214+
<li>RSS Feed地址为:<code class="notranslate">http://$ip:$port/image/rss.xml?key=$api_key</code></li>
215+
</ul>
211216
<h3>云端任务的安全性</h3>
212217
<p>Check酱云端任务的原理是将cookie同步到云端,然后用浏览器查看,本质和用户操作一样。但因为出口IP可能是机房和数据中心,频次太高也有被风控的可能。如果将云端部署在家里,则和在家用电脑访问效果一样。</p>
213218
<h3>云端错误排查</h3>

readme.html

+9-4
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.08.16.14.33 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
13-
<li>Docker镜像(云端+远程桌面二合一):2022.08.16.13.58 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
14-
<li>文档:2022.08.16.14.33</li>
12+
<li>插件·Chrome/Edge:2022.08.16.16.52 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
13+
<li>Docker镜像(云端+远程桌面二合一):2022.08.16.16.42 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
14+
<li>文档:2022.08.16.16.52</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>
@@ -138,7 +138,6 @@ <h4>通过 Docker-compose 启动</h4>
138138
<span class="pl-c"><span class="pl-c">#</span>- "SNAP_FULL=1"</span>
139139
- <span class="pl-s"><span class="pl-pds">"</span>TZ=Asia/Chongqing<span class="pl-pds">"</span></span>
140140
<span class="pl-c"><span class="pl-c">#</span> - "WEBHOOK_URL=http://..." # 云端 Webhook地址,不需要则不用设置</span>
141-
<span class="pl-c"><span class="pl-c">#</span> - "PROXY_SERVER=http://proxy.ip:port" # 代理服务器地址,目前仅DOM监测支持代理</span>
142141
<span class="pl-ent">ports</span>:
143142
- <span class="pl-s"><span class="pl-pds">"</span>5900:5900<span class="pl-pds">"</span></span>
144143
- <span class="pl-s"><span class="pl-pds">"</span>8080:8080<span class="pl-pds">"</span></span>
@@ -197,6 +196,12 @@ <h3>云端截图</h3>
197196
<li>截图功能需要较大的内存,部分服务器可能会报错</li>
198197
<li>云端网络和本地不同,可能会超时失败,请适当增加延时,并将取消完整截图</li>
199198
</ul>
199+
<h3>RSS上行接口</h3>
200+
<p>Check酱自架云端内置了动态页面RSS上行用的接口:</p>
201+
<ul>
202+
<li>RSS上行地址为: <code class="notranslate">http://$ip:$port/rss/upload?key=$api_key</code></li>
203+
<li>RSS Feed地址为:<code class="notranslate">http://$ip:$port/image/rss.xml?key=$api_key</code></li>
204+
</ul>
200205
<h3>云端任务的安全性</h3>
201206
<p>Check酱云端任务的原理是将cookie同步到云端,然后用浏览器查看,本质和用户操作一样。但因为出口IP可能是机房和数据中心,频次太高也有被风控的可能。如果将云端部署在家里,则和在家用电脑访问效果一样。</p>
202207
<h3>云端错误排查</h3>

0 commit comments

Comments
 (0)