XMOJ-Script-dev/XMOJ-Script

[Feature Request] Use push notifications

Opened this issue · 49 comments

检查项

  • 我已确认了XMOJ增强脚本已为最新版,且最新版未实现这一功能。
  • 我已在 Issues 页面 中搜索,确认了这一提案未被提交过。

描述

see https://web.dev/articles/push-notifications-overview

also we can remove the stupid getbbsmention and use the push API: https://developer.mozilla.org/en-US/docs/Web/API/Push_API

原因

No response

You said that my function GetBBSMention is stupid? 😆

知道了。

assign我干嘛???

一切皆有可能
-- @langningchen

不可能

一切皆有可能
-- @langningchen

不可能

除非你能向xmoj服务器上传文件

一切皆有可能
-- @langningchen

不可能

除非你能向xmoj服务器上传文件

没明白,为什么要上传文件?把文件做编码存到D1里面也可以啊

还是不懂......

哦, 可能

??? 更加疑惑了

还是不知道,你这个现在里面什么也没有

image
等一会, 回自己跳出来

然后呢?不过是不是这个网页关掉,它就不能正常工作了?是利用了系统的通知是吧?

然后呢?不过是不是这个网页关掉,它就不能正常工作了?是利用了系统的通知是吧?

wait

然后呢?不过是不是这个网页关掉,它就不能正常工作了?是利用了系统的通知是吧?

可以哦

@boomzero 我也收到,你太棒了!

恭喜你,通过这个方法,可以大大减轻服务器负担

不对

我不知道谁是谁

只知道他们的subscription id, 不知道xmoj userid

@boomzero 他是怎么发送消息的?API?

@boomzero 我发现这个文件没有弄好呢? https://notifications.xmoj-bbs.tech/OneSignalSDK.sw.js

刚才不小心用了我同学的账号发了

Cloudflare Pages 没法返回正常的这个文件?

actually, I don't think I have time to fix this, so maybe @PythonSmall-Q can help me

没搞懂这玩意儿是怎么玩的

okay,but你要让我干什么

……c无语了有没有小小的提示,我已经被sitemap搞晕了

点一下这个链接

提示: https://notifications.xmoj-bbs.tech

On Feb 17, 2024, at 11:01, Shan Wenxiao @.***> wrote: ……c无语了有没有小小的提示,我已经被sitemap搞晕了 — Reply to this email directly, view it on GitHub <#335 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AULMJZMF6HIXKHZ4S4P6RJTYUAMSHAVCNFSM6AAAAABBPRLWJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGYZDAMBSG4. You are receiving this because you were mentioned.

我知道,但是我不知道要干什么……

Or durable objects

这个要付钱,不行

---- Zhu Chenrui @.***> 在 周日, 18 8月 2024 13:27:28 +0800 写到:--- Or durable objects — Reply to this email directly, #335 (comment), or https://github.com/notifications/unsubscribe-auth/BKKT6YSWVD5ILJIB2PSEUC3ZSAWEBAVCNFSM6AAAAABBPRLWJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGEYTSNZVG4. You are receiving this because you are subscribed to this thread.

Then you fix it