javascript - 我可以在 Chrome 中强制禁用“requireInteraction”吗?
问题描述
我想接收来自 Chrome 的通知,但我对需要单击它们才能关闭的通知(即 YouTube)感到恼火。我相信这是 Web Notifications 中的“requireInteraction”属性
https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction
我可以强制将其设置为 false,以便我仍然会收到来自 YouTube 的通知,但如果我不与它们互动,它们会自动消失吗?
解决方案
推荐阅读
- android - 删除不必要的 gradle 导入
- android - 使用 Play 核心库验证非 Google Play 应用安装
- c# - 如何将值传输到另一个表单中的 DataGridView
- r - 如何禁止代码出现在 Shiny UI 中?
- memory-address - 在编译时如何分配内存地址
- mysql - 左连接动态列
- node.js - 如何将 ADFS 与我的节点 js 登录一起使用以对其他登录进行身份验证
- google-apps-script - 单个文档中各个工作表的不同 URL
- php - 使用opentbs创建docx时是否可以在子块上使用子块?
- node.js - 尝试使用 npm run build 运行 nodejs 脚本