如何使用C#编程语言编写的Firefox扩展使用Visual Studio?如何使用、编程语言、Firefox、Visual

2023-09-02 10:28:41 作者:把謊言詮釋得淋漓盡致

我在想,如果有可能写使用.NET Framework的Firefox扩展? 曾在使用C#编程语言编写的Firefox扩展任何这样的经历? 任何一个优秀的网站或准则将是非常有益的。

I was wondering if it's possible to write Firefox extension using .Net Framework? Had anybody such experience in writing Firefox extensions using C# programming language? Any good sites or guidelines would be very helpful.

下面是我所需要的例子。扩展输入电话号码,并发送短信。 我画它的油漆,所以我很抱歉,对于没有艺术感。

Here is an example of what I need. Extension to enter phone number and to send SMS Message. I draw it in Paint, so I'm sorry for having no artistic touch.

推荐答案

假设你问如何编写一个扩展(而不是插件),最好的地方上手的与在Mozilla的开发中心的信息。

Assuming you're asking about writing an extension (and not a plugin), the best place to get started is with the info at the Mozilla Dev Center.

Konamiman是正确的:扩展大多是XUL(一种XML语法)和Javascript,打包成扩展名为ZIP文件的.xpi 。从我的链接页面的各个环节应该回答的基本问题,像你上面贴了一句:

Konamiman is correct: extensions are mostly XUL (an XML grammar) and Javascript, packaged into a ZIP file with the extension .xpi. The various links from the page I linked should answer basic questions, like the one you posted above:

https://developer.mozilla.org/en/Building%5Fan%5FExtension

https://developer.mozilla.org/en/Extension%5FFrequently%5FAsked%5FQuestions