如何将扩展协议处理程序添加到Firefox [英] How do I add protocol handler to firefox from extension
本文介绍了如何将扩展协议处理程序添加到Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,如果我们在地址栏中输入
< my-protocol name>:// ...
它应该在扩展中调用JavaScript函数。如果没有明确的设置,我想要实现它。 解决方案
- http://www.nexgenmedia.net/docs/protocol/
- https://developer.mozilla.org/en/nsIProtocolHandler
- 和/或google for firefox协议处理程序
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.
解决方案
- http://www.nexgenmedia.net/docs/protocol/
- https://developer.mozilla.org/en/nsIProtocolHandler
- And/or google for firefox protocol handler
这篇关于如何将扩展协议处理程序添加到Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文