在 safari5 中拦截 feed://
我正在为 Safari5 编写一个扩展,我试图拦截这样一个事实:用户单击 RSS 图标并加载 feed://.... URL 来为他/她提供订阅选项。我尝试为 feed:/// 白名单模式注册一个起始内容脚本,但这不起作用。有谁知道如何进行这项工作?
I am writing an extension for Safari5 and I am trying to intercept the fact that the user is clicking on an RSS icon and loading a feed://.... URL to offer him/her subscription options. I have tried to register a start content script for the feed:/// whitelist pattern but that does not work. Does anyone know how to make this work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在“添加到 Google 阅读器”中正是这样做的扩大。请随意查看源代码,看看我做了什么。我尝试了白名单和黑名单的各种变体,但最终不得不手动检查。
I've done exactly this in my "Add to Google Reader" extension. Feel free to take a look at the source code to see what I did. I tried variations of white- and blacklists, but ended up having to check manually.