swift - 这个 Safari Blocker 正则表达式有什么问题?
问题描述
我正在开发一个 Safari 扩展程序( Safari 文件夹中的https://github.com/bcye/Hello-Goodbye)并试图阻止聊天小部件。
我试图阻止(在 Chrome 扩展语法中)*://widget.intercom.io/*
所以我试图阻止 http 或 https 以及 widget.intercom.io 上的任何路径
我尝试了这两个 Safari 拦截器正则表达式(文档:https ://developer.apple.com/documentation/safariservices/creating_a_content_blocker ):
https?:\/\/widget\.intercom\.io\/(.*)
https?://widget\.intercom\.io/.
两者都不起作用。
我尝试在https://regex101.com/上调试它们,它告诉我第一个应该可以工作。
链接到 regex101:https ://regex101.com/r/N3jUdW/1
解决方案
推荐阅读
- java - 如何在java中的pdf中显示泰卢固语字体
- asp.net-core - 如何使用模型绑定将值修补为空
- c# - 在 C# 中的类之间设置 Int 变量
- c# - 使用c#打印水平镜像的ascii艺术
- ruby-on-rails - 如何从终端中删除这条线(在图片中)?
- shell - 找不到 Shell 脚本命令,但在终端中有效
- node.js - Bash 错误的退出代码
- c# - 我无法在 goto 语句的范围内修复“没有这样的标签‘名称’”
- firefox - Firefox 开发 - 如何在与检查器中的元素交互时禁用指南或滚动条?
- node.js - laravel npm run dev 错误!代码 ELIFECYCLE 在@开发脚本处失败