如何将扩展协议处理程序添加到Firefox [英] How do I add protocol handler to firefox from extension

查看:123
本文介绍了如何将扩展协议处理程序添加到Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Firefox扩展中捕获我的协议请求。
例如,如果我们在地址栏中输入< my-protocol name>:// ... 它应该在扩展中调用JavaScript函数。如果没有明确的设置,我想要实现它。

解决方案


I want to trap request for a my protocol from Firefox extension. For example if we type <my-protocol name>://... in address bar It should call a JavaScript function in an extension. I want to achieve it if possible without explicit settings.

解决方案

这篇关于如何将扩展协议处理程序添加到Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆