Firefox 附加组件、扩展、插件

发布于 2024-12-07 00:14:59 字数 88 浏览 2 评论 0原文

我想为 Firefox 编写脚本。 Firefox 似乎有不同的术语,例如附加组件、扩展、插件。我有一种感觉,他们并不完全相同。你能用几句话概括一下两者的区别吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

柠北森屋 2024-12-14 00:14:59

附加组件:本质上是任何可以安装到浏览器中的东西。这包括例如扩展、主题、插件、词典、语言包、搜索引擎。

扩展:扩展浏览器功能的包,Firefox 使用的扩展格式仅适用于基于 Gecko 的浏览器。 扩展通常使用 XUL 和 CSS 作为其用户界面,并使用 JavaScript 来执行动态操作。他们拥有对 XPCOM 的完全访问权限,并且还可以提供自己的 XPCOM 组件。最近添加了附加 SDK 作为生成简单扩展的替代方法,它使用 HTML 而不是 XUL,但限制了浏览器用户界面可显着扩展的方式。 从 Firefox 57 开始,所有扩展都必须基于 WebExtensions API

插件:指除 Internet Explorer 之外的所有浏览器都支持的 NPAPI 插件(后者使用专有的 ActiveX)技术来代替)。此类插件是二进制库,如果网站使用 < /code>标签的类型为由插件处理。该插件可以为标签绘制一些内容(窗口插件),也可以留在后台并简单地提供一个 API 供网页的 JavaScript 代码使用(无窗口插件)。典型的例子是 Flash 或 Silverlight。对插件的支持正在逐步取消,截至 2018 年,Flash 是唯一在某种程度上仍受支持的插件。

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. As of Firefox 57, all extensions have to be based on the WebExtensions API.

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. Support for plugins is being phased out, as of 2018 Flash is the only plugin still supported to some degree.

紫瑟鸿黎 2024-12-14 00:14:59

补充上面有用的答案,我发现这个高级总结很有帮助:

扩展与插件略有不同。插件通常具有有限的功能。 [..]由于插件和扩展都增加了原始应用程序的实用性,Mozilla 使用术语“附加组件”作为包含插件、主题和搜索引擎的增强模块的包容性类别。

(来自 http://en.wikipedia.org/wiki/Plug-in_(computing) )

Augmenting the useful answer above, I found this high-level summary helpful:

Extensions differ slightly from plug-ins. Plug-ins usually have a narrow set of abilities. [..] Since plug-ins and extensions both increase the utility of the original application, Mozilla uses the term "add-on" as an inclusive category of augmentation modules that consists of plug-ins, themes, and search engines.

(from http://en.wikipedia.org/wiki/Plug-in_(computing))

掩于岁月 2024-12-14 00:14:59

根据火狐浏览器:

扩展

扩展为 Firefox 添加新功能或修改现有功能。有些扩展允许您阻止广告从网站下载视频、将 Firefox 与 Facebook 或 Twitter 等网站集成,以及添加其他浏览器中包含的功能,例如翻译器。

插件

插件添加了对各种互联网内容的支持。这些通常包括用于视频、音频、在线游戏、演示文稿等的专利格式,例如Flash。插件由其他公司创建和分发。

附加组件

它们是 - 扩展、Plugnis、主题、搜索引擎和词典。语言包。

来源:Firefox - https://support.mozilla.org/en-US/kb/find-and-install-add-ons-add-features-to-firefox

According to Firefox:

Extensions

Extensions add new features to Firefox or modify existing ones. There are extensions that allow you to block advertisements, download videos from websites, integrate Firefox with websites like Facebook or Twitter and add features included in other browsers, such as translator.

Plugins

Plugins add support for all kinds of Internet content. These usually include patented formats like Flash that are used for video, audio, online games, presentations and more. Plugins are created and distributed by other companies.

add-ons

They are - Extensions, Plugnis, Themes, Search engines and Dictionaries & Language Packs.

Source: Firefox - https://support.mozilla.org/en-US/kb/find-and-install-add-ons-add-features-to-firefox

故笙诉离歌 2024-12-14 00:14:59

扩展上述扩展

是为了扩展软件的功能
插件是用来解决软件问题的(能够做一些它原本设计要做的事情)。

两种类型都扩展了程序能力,
...我想这就是为什么它会如此令人困惑。

扩展可以(并且通常是)制作软件的公司的一个选项(通常需要花钱),
插件可以来自制作软件的公司或第三方,以向软件添加功能。

Extending the Augmentation above

Extension(s) is ment to extend the functionality of software
where a plug-in is ment to solve a problem of the software (to be able to do something it wasent designed to do already).

both types extends the program abilitys,
... and i guess this is why it can be so comfusing.

An Extension can be (and often are) a(n) option from the company that made the software (Usually cost money),
a plug-in can be from the company that made the software or a third party to add abilities to the software.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文