Skip to content

Commit

Permalink
优化cookie域名匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
easychen committed Aug 16, 2022
1 parent 1a56fd0 commit b4fe96f
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 19 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

## 最新版本

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

Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022.08.13.20.20"
"2022.08.16.14.33"
Binary file modified ckc.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion docker.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2022.08.13.19.53"
"2022.08.16.13.58"
2 changes: 1 addition & 1 deletion docker/src/chrome_extension/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"message": "Check酱"
},
"appDesc": {
"message": "监控页面变动,并发送异动到微信。 Build.2022.08.13.20.20",
"message": "监控页面变动,并发送异动到微信。 Build.2022.08.16.14.33",
"description":"亦支持http status、json和rss监测。配合自架云端,关电脑后也能运行。"
}
}
6 changes: 3 additions & 3 deletions docker/src/chrome_extension/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"files": {
"main.css": "/static/css/main.0e42becb.chunk.css",
"main.js": "/static/js/main.68bf6237.chunk.js",
"main.js": "/static/js/main.757d352b.chunk.js",
"runtime-main.js": "/static/js/runtime-main.17191aad.js",
"static/css/2.65280f5c.chunk.css": "/static/css/2.65280f5c.chunk.css",
"static/js/2.465e7d2f.chunk.js": "/static/js/2.465e7d2f.chunk.js",
"index.html": "/index.html",
"precache-manifest.1e7d90fbe055e64af8228be64c56f360.js": "/precache-manifest.1e7d90fbe055e64af8228be64c56f360.js",
"precache-manifest.0e2f079fe511bc66325b74a15f7d76de.js": "/precache-manifest.0e2f079fe511bc66325b74a15f7d76de.js",
"service-worker.js": "/service-worker.js",
"static/media/index.scss": "/static/media/icons-20.cef8cdbb.woff"
},
Expand All @@ -15,6 +15,6 @@
"static/css/2.65280f5c.chunk.css",
"static/js/2.465e7d2f.chunk.js",
"static/css/main.0e42becb.chunk.css",
"static/js/main.68bf6237.chunk.js"
"static/js/main.757d352b.chunk.js"
]
}
2 changes: 1 addition & 1 deletion docker/src/chrome_extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ async function get_cookie_by_checks( checks )
for( const cookie of cookies )
{
// console.log( "cookie", cookie, domain, domain.indexOf(cookie.domain) );
if( domain.indexOf(cookie.domain) >= 0 )
if( cookie.domain?.indexOf(domain) >= 0 || domain.indexOf(cookie.domain) >= 0 )
{
ret_cookies[domain].push( cookie );
}
Expand Down
2 changes: 1 addition & 1 deletion docker/src/chrome_extension/index.html
Original file line number Diff line number Diff line change
@@ -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.68bf6237.chunk.js"></script></body></html>
<!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>
2 changes: 1 addition & 1 deletion docker/src/chrome_extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "__MSG_appTitle__",
"description": "__MSG_appDesc__",
"default_locale": "zh_CN",
"version": "0.9.6",
"version": "0.9.7",
"icons": {
"512": "logo.color.png"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "8050d682f133cb3699976912807639c9",
"url": "/index.html"
},
{
"revision": "5c12cce1404dabf49f3a",
"url": "/static/css/2.65280f5c.chunk.css"
},
{
"revision": "3cbee810e9c4f68975d7",
"url": "/static/css/main.0e42becb.chunk.css"
},
{
"revision": "5c12cce1404dabf49f3a",
"url": "/static/js/2.465e7d2f.chunk.js"
},
{
"revision": "3cbee810e9c4f68975d7",
"url": "/static/js/main.757d352b.chunk.js"
},
{
"revision": "4d30565b04f5f2725c56",
"url": "/static/js/runtime-main.17191aad.js"
},
{
"revision": "05f1cdadfe476395f60e233b15c22155",
"url": "/static/media/icons-16.05f1cdad.eot"
},
{
"revision": "3c1c220e7a18286503fb431c7a7fe183",
"url": "/static/media/icons-16.3c1c220e.woff"
},
{
"revision": "3cde8748332d1de6b1ae1c2dc5850754",
"url": "/static/media/icons-16.3cde8748.ttf"
},
{
"revision": "0a5c76518a68c185baa2c6744456918c",
"url": "/static/media/icons-20.0a5c7651.eot"
},
{
"revision": "51ec31f302d0072808e1f83f85fea4cd",
"url": "/static/media/icons-20.51ec31f3.ttf"
},
{
"revision": "cef8cdbb9d0ba82e6e19fb0eeba2ac3d",
"url": "/static/media/icons-20.cef8cdbb.woff"
}
]);
2 changes: 1 addition & 1 deletion docker/src/chrome_extension/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.1e7d90fbe055e64af8228be64c56f360.js"
"/precache-manifest.0e2f079fe511bc66325b74a15f7d76de.js"
);

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

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ <h1>Check酱</h1>
</ol>
<h2>最新版本</h2>
<ul>
<li>插件·Chrome/Edge:2022.08.13.20.20 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
<li>Docker镜像(云端+远程桌面二合一):2022.08.13.19.53 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.08.13.20.20</li>
<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>
<li>Docker镜像(云端+远程桌面二合一):2022.08.16.13.58 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.08.16.14.33</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>
Expand Down
6 changes: 3 additions & 3 deletions readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ <h1>Check酱</h1>
</ol>
<h2>最新版本</h2>
<ul>
<li>插件·Chrome/Edge:2022.08.13.20.20 <a href="ckc.zip">下载</a> (<a href="https://github.com/easychen/checkchan-dist/raw/master/ckc.zip">Github下载地址,无需注册</a>)</li>
<li>Docker镜像(云端+远程桌面二合一):2022.08.13.19.53 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.08.13.20.20</li>
<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>
<li>Docker镜像(云端+远程桌面二合一):2022.08.16.13.58 <a href="https://hub.docker.com/repository/docker/easychen/checkchan" rel="nofollow">Docker Hub</a></li>
<li>文档:2022.08.16.14.33</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>
Expand Down

0 comments on commit b4fe96f

Please sign in to comment.