找回密码
 快速注册
搜索
查看: 72|回复: 8

怎么不提示有“提醒”

[复制链接]

830

主题

4862

回帖

3万

积分

积分
36159

显示全部楼层

isee 发表于 2022-6-13 18:20 |阅读模式
不必全局,个人屏了即可,每天都到坛子逛,这个提醒不喜,不点,还在标签晃眼
n.jpg
isee=freeMaths@知乎

830

主题

4862

回帖

3万

积分

积分
36159

显示全部楼层

 楼主| isee 发表于 2022-6-13 18:21
算了算了,就这样吧
isee=freeMaths@知乎

730

主题

1万

回帖

9万

积分

积分
93623
QQ

显示全部楼层

kuing 发表于 2022-6-13 18:23
我也不是很了解……

好像可以点右上角的小叉叉暂时不提醒

830

主题

4862

回帖

3万

积分

积分
36159

显示全部楼层

 楼主| isee 发表于 2022-6-13 18:28
kuing 发表于 2022-6-13 18:23
我也不是很了解……

好像可以点右上角的小叉叉暂时不提醒

可以可以,不打扰即可
isee=freeMaths@知乎

730

主题

1万

回帖

9万

积分

积分
93623
QQ

显示全部楼层

kuing 发表于 2022-6-14 17:50
注释掉 \static\js\common.js 第 1832 行的

document.title = (NOTICETITLE['State'] ? '【   】' : '【新提醒】') + NOTICETITLE['oldTitle'];

这样浏览器标题应该就不会有【新提醒】了。

至于右上的“提醒”,就点小叉叉关闭吧,在 cookie 有效期内会持续有效吧……

如果还没生效,那是因为缓存的缘故,可以按 CTRL+F5 强制刷新。

15

主题

958

回帖

1万

积分

积分
12454

显示全部楼层

色k 发表于 2022-6-14 17:52 来自手机
kuing 发表于 2022-6-14 17:50
注释掉 \static\js\common.js 第 1832 行的

document.title = (NOTICETITLE['State'] ? '【   】' : ' ...

test一下

点评

emmmmm  发表于 2022-6-14 18:15
这名字我喜欢

830

主题

4862

回帖

3万

积分

积分
36159

显示全部楼层

 楼主| isee 发表于 2022-6-14 18:19

opera dev 清理 缓存 比较麻烦了

已经是4#状态了,不打扰即可
isee=freeMaths@知乎

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-6-19 09:04
JS 显示气泡通知的Notification API
Notifications API 允许网页控制向最终用户显示系统通知 —这些都在顶级浏览上下文视口之外,因此即使用户已经切换标签页或移动到不同的应用程序,也可以显示。该 API 被设计成与不同平台上的现有通知系统兼容。

不过,这须得在安全上下文(HTTPS)下,浏览器才允许. 不妨去弄一个SSL证书(有免费的,如Let's Encrypt),很简单的

在支持该接口的平台上,显示一个系统通知通常涉及两件事。首先,用户需要授予当前源的权限以显示系统通知,这通常在应用或站点初始化时,使用Notification.requestPermission() 方法来完成。

这将产生一个权限请求对话框:
notification-bubble[1].png
从这里,用户可以选择允许来自此来源的通知,阻止来自此来源的通知,或不选择此点。一旦做出选择,该设置通常将持续用于当前会话。

The Notifications API lets a web page or app send notifications that are displayed outside the page at the system level; this lets web apps send information to a user even if the application is idle or in the background(即使浏览器在后台运行的情况下). This article looks at the basics of using this API in your own apps.

Typically, system notifications refer to the operating system's standard notification mechanism: think for example of how a typical desktop system or mobile device broadcasts notifications.

The system notification system will vary of course by platform and browser, but this is OK, and the Notifications API is written to be general enough for compatibility with most system notification systems.
Examples

One of the most obvious use cases for web notifications is a web-based mail or IRC application that needs to notify the user when a new message is received, even if the user is doing something else with another application. Many examples of this now exist, such as Slack.

developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 15:56

Powered by Discuz!

× 快速回复 返回顶部 返回列表