如何注册我自己的Firefox扩展? [英] How to register my own firefox extension?

查看:205
本文介绍了如何注册我自己的Firefox扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习如何编写Firefox扩展。我从这里下载了一个HelloWorld示例,但我无法弄清楚如何注册它。

我发现我的个人资料扩展名文件夹(Easy,因为我使用最新的Firefox版本),但不能真正理解这是什么指针文件,我需要创建尝试了一个快捷方式,但它没有工作)。

这是什么指针文件?
如何正确注册?
我正在使用Win 7。



谢谢。

解决方案 div>

您必须在扩展名文件夹中创建一个文件名称(例如 helloworld@mozilla.doslash.org )。这个文件应该只包含一行,它是加载项所在文件夹的绝对路径(例如 C:\\my\path\to\addon (或者窗口路径看起来像))。


I am trying to learn how to write firefox extensions. I download an HelloWorld example from here but I can't figure out how to register it.

I found my profiles extension folder (Easy since I use the latest Firefox version) but couldn't really understand what is this "Pointer file" that I need to create (tried a shortcut but it didn't work).

What is this "Pointer File"? How can I register it correctly? I am using Win 7 if matters.

Thank You.

解决方案

You have to create a file in the extensions folder with the ID of the add-on as name (e.g. helloworld@mozilla.doslash.org). This file should contain only one line which is the absolute path to the folder where the add-on is contained (e.g. C:\\my\path\to\addon (or however windows paths look like)).

这篇关于如何注册我自己的Firefox扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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