Dodatki

Modyfikacje i rozszerzenia programu Mozilla

Dodatki dodaj膮 nowych funkcji do aplikacji bazuj膮cych na Gecko takich jak Firefox, SeaMonkey i Thunderbird. Istniej膮 dwa g艂贸wne typy dodatk贸w : Rozszerzenia, kt贸re dodaj膮 nowych w艂a艣ciwo艣ci do programu, oraz motywy kt贸re zmieniaj膮 wygl膮d programu

Dla obu rodzaj贸w rozszerze艅, Mozilla wprowadzi艂a specjaln膮 stron臋 addons.mozilla.org, znan膮 r贸wnie偶 jako "AMO" . submit add-ons to AMO they are reviewed, and after passing review they are made available to users. You don't have to submit add-ons to AMO, but if you do, users can take confidence in the fact that they have been reviewed, and you can benefit from AMO's visibility as a source for useful add-ons.

Add-ons can greatly affect the behaviour of the application that hosts them. We've developed a set of guidelines to help ensure that they provide a good experience to users. These guidelines apply for all sorts of add-ons, whether they are hosted at addons.mozilla.org or not.


Rozszerzenia

Rozszerzenia dodaj膮 now膮 funkcjonalno艣膰 do aplikacji Mozilla takich jak Firefox czy Thunderbird. Mog膮 dodawa膰 nowe funkcje do przegl膮darki, na przyk艂ad inny spos贸b zarz膮dzania zak艂adkami. Mog膮 tak偶e modyfikowa膰 zawarto艣膰 witryn, by ulepszy膰 u偶ytkowanie i bezpiecze艅stwo okre艣lonych stron.

Istniej膮 trzy r贸偶ne techniki, kt贸rych mo偶esz u偶y膰, by stworzy膰 rozszerzenie: rozszerzenia bazuj膮ce na dodatkach SDK, rozszerzenia niewymagaj膮ce restartu (bootstrap) oraz rozszerzenia legacy.

If you can, it's advisable to use the Add-on SDK, which uses the restartless extension mechanism but simplifies certain tasks and cleans up after itself. If the Add-on SDK isn't sufficient for your needs, implement a manual restartless extension instead. Overlay extensions are mostly obsolete now, although there are still many of them in the wild.

For more information on choosing which technique to use, read this comparison.

Good practices

No matter how you develop an extension, there are some guidelines you can follow to help ensure your extension provides as good a user experience as possible.

Performance
Ensuring your extension is fast, responsive and memory-efficient.
Security
Ensuring your extension doesn't expose the user to malicious websites.
Etiquette
Ensuring your extension plays nicely with other extensions.

Application-specific

Most of the documentation assumes you're developing for Firefox Desktop. If you're developing for some other Gecko-based application, there are major differences you need to know about.

Thunderbird
Developing extensions for the Thunderbird mail client.
Firefox for Android
Developing extensions for Firefox for Android.
SeaMonkey
Developing extensions for the SeaMonkey software suite.

Motywy

Motywy to dodatki modyfikuj膮ce interfejs u偶ytkownika. Istniej膮 dwa rodzaje motyw贸w: lekkie  i kompletne motywy.

Lekkie motywy s膮 prostsze w implementacji od kompletnych motyw贸w, ale s膮 te偶 bardzo ograniczone.

kompletnymi motywami mo偶esz dokonywa膰 g艂臋bszych modyfikacji w UI. Dokumentacja tych motyw贸w jest nieaktualna, ale jest tutaj podlinkowana zaktualizowana wersja.


Inne rodzaje dodatk贸w

Search engine plugins are a simple and very specific type of add-on: they add new search engines to the browser's search bar.

Plugins help the application understand content that it does not natively support. We're in the process of deprecating support for these plugins, as they have a history of causing stability, performance, and security problems.