Firefox附加与扩展与插件 [英] firefox add-on vs. extensions vs. plugins

查看:187
本文介绍了Firefox附加与扩展与插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Firefox编写脚本。看来,Firefox有不同的术语,如附加,扩展,插件。我有一种感觉,他们并不完全一样。你能总结一下几句话之间的区别吗?

解决方案

附件:基本上任何可以安装到浏览器中的东西。这包括扩展,主题,插件,字典,语言包,搜索引擎。
$ b 扩展:一个扩展浏览器功能的包,Firefox使用的扩展格式在Gecko仅基于浏览器。扩展通常使用 XUL 和CSS来实现其用户界面,以及JavaScript来实现动态操作。他们可以完全访问 XPCOM ,也可以提供自己的XPCOM组件。最近添加了附加SDK 作为产生简单扩展的替代方式,它使用HTML代替但限制了浏览器用户界面的显着扩展。

插件:表示 NPAPI 插件,所有浏览器都支持,但Internet Explorer(后者使用专有的ActiveX技术)。这样的插件是二进制库,如果网站使用 < embed> < object> 标签与插件处理的类型。该插件可以为标签(窗口化插件)绘制一些内容,或者保留在后台,并简单地为网页的JavaScript代码提供一个API(无窗口插件)。典型的例子是Flash或Silverlight。


I want to write scripts for firefox. It seems that firefox has different terms, like add-on, extensions, plugins. and I have a feeling they're not all the same. Can you sum up the difference between in a few words?

解决方案

Add-on: essentially anything that can be installed into the browser. This includes for example extensions, themes, plugins, dictionaries, language packs, search engines.

Extension: a package extending browser functionality, the extension format used by Firefox works in Gecko-based browsers only. Extensions typically use XUL and CSS for their user interface as well as JavaScript for dynamic actions. They have full access to XPCOM and can provide their own XPCOM components as well. Recently the Add-on SDK has been added as an alternative way to generate simple extensions, it uses HTML instead of XUL but limits the ways in which the browser's user interface can be extended significantly.

Plugin: means NPAPI plugins that are supported by all browsers but Internet Explorer (the latter uses the proprietary ActiveX technology instead). Such plugins are binary libraries that are invoked if a website uses an <embed> or <object> tag with a type that is handled by the plugin. The plugin can either draw some content for the tag (windowed plugins) or stay in background and simply provide an API for the webpage's JavaScript code to use (windowless plugins). Typical examples are Flash or Silverlight.

这篇关于Firefox附加与扩展与插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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