From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/tr/mozilla/add-ons/sdk/tutorials/index.html | 158 ++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 files/tr/mozilla/add-ons/sdk/tutorials/index.html (limited to 'files/tr/mozilla/add-ons/sdk/tutorials/index.html') diff --git a/files/tr/mozilla/add-ons/sdk/tutorials/index.html b/files/tr/mozilla/add-ons/sdk/tutorials/index.html new file mode 100644 index 0000000000..56ae76c9d4 --- /dev/null +++ b/files/tr/mozilla/add-ons/sdk/tutorials/index.html @@ -0,0 +1,158 @@ +--- +title: Tutorials +slug: Mozilla/Add-ons/SDK/Tutorials +translation_of: Archive/Add-ons/Add-on_SDK/Tutorials +--- +
+

Support for extensions using XUL/XPCOM or the Add-on SDK was removed in Firefox 57, released November 2017. As there is no supported version of Firefox enabling these technologies, this page will be removed by December 2020.

+ +

Add-ons using the techniques described in this document are considered a legacy technology in Firefox. Don't use these techniques to develop new add-ons. Use WebExtensions instead. If you maintain an add-on which uses the techniques described here, consider migrating it to use WebExtensions.

+ +

Starting from Firefox 53, no new legacy add-ons will be accepted on addons.mozilla.org (AMO) for desktop Firefox and Firefox for Android.

+ +

Starting from Firefox 57, only extensions developed using WebExtensions APIs will be supported on Desktop Firefox and Firefox for Android.

+ +

Even before Firefox 57, changes coming up in the Firefox platform will break many legacy extensions. These changes include multiprocess Firefox (e10s), sandboxing, and multiple content processes. Legacy extensions that are affected by these changes should migrate to use WebExtensions APIs if they can. See the "Compatibility Milestones" document for more information.

+ +

A wiki page containing resources, migration paths, office hours, and more, is available to help developers transition to the new technologies.

+
+ +

This page lists practical hands-on articles about how to accomplish specific tasks using the SDK.

+ +
+

Başlarken

+ +
+
+
+
Yükleme
+
Eklentileri geliştirmek için kullanacağınız jpm aracı nasıl yüklenir.
+
+ +
+
Sorun giderme
+
+
+
Ortak sorunları tespit etmek ve daha fazla yardım almak için bazı göstericiler.
+
+
+
+
+ +
+
+
Başlarken
+
jpm kullanarak, SDK ile basit bir eklenti yaratmanın gidiş yolu.
+
+
+
+ +
+

Kullanıcı Arayüzü Yaratma

+ +
+
+
+
Araç çubuğu butonu ekleme
+
Attach a button to the Firefox Add-on toolbar.
+
Firefox'a bir menü nesnesi ekleme
+
Add items to Firefox's main menus.
+
+
+ +
+
+
Bir açılır pencere gösterme
+
Display a popup dialog implemented with HTML and JavaScript.
+
Bir içerik menüsü nesnesi ekleme
+
Add items to Firefox's context menu.
+
+
+
+ +
+

Interact with the browser

+ +
+
+
+
Open a web page
+
Open a web page in a new browser tab or window using the tabs module, and access its content.
+
Listen for page load
+
Use the tabs module to get notified when new web pages are loaded, and access their content.
+
+
+ +
+
+
Get the list of open tabs
+
Use the tabs module to iterate through the currently open tabs, and access their content.
+
+
+
+ +
+

Modify web pages

+ +
+
+
+
Modify web pages based on URL
+
Create filters for web pages based on their URL: whenever a web page whose URL matches the filter is loaded, execute a specified script in it.
+
+
+ +
+
+
Modify the active web page
+
Dynamically load a script into the currently active web page.
+
+
+
+ +
+

Development techniques

+ +
+
+
+
Logging
+
Log messages to the console for diagnostic purposes.
+
Creating reusable modules
+
Structure your add-on in separate modules to make it easier to develop, debug, and maintain. Create reusable packages containing your modules, so other add-on developers can use them too.
+
Unit testing
+
Writing and running unit tests using the SDK's test framework.
+
Chrome authority
+
Get access to the Components object, enabling your add-on to load and use any XPCOM object.
+
Creating event targets
+
Enable the objects you define to emit their own events.
+
+
+ +
+
+
Listen for load and unload
+
Get notifications when your add-on is loaded or unloaded by Firefox, and pass arguments into your add-on from the command line.
+
Using third-party modules (jpm)
+
Install and use additional modules which don't ship with the SDK itself.
+
Localization
+
Writing localizable code.
+
Mobile development
+
Develop add-ons for Firefox Mobile on Android.
+
Add-on Debugger
+
Debug your add-on's JavaScript.
+
+
+
+ +
+

Putting it together

+ +
+
+
+
Annotator add-on
+
A walkthrough of a relatively complex add-on.
+
+
+
-- cgit v1.2.3-54-g00ecf