background preloader

Extensions - MDC

Extensions - MDC
Modify and extend Mozilla applications Add-ons add new functionality to Gecko-based applications such as Firefox, SeaMonkey, and Thunderbird. There are two main types of add-on: Extensions add new features to the application, while Themes modify the application's user interface. Add-ons can greatly affect the behavior of the application that hosts them. Extensions Extensions add new functionality to Mozilla applications such as Firefox and Thunderbird. There are three different techniques you can use to build extensions: Add-on SDK-based extensions, manually bootstrapped restartless extensions, and legacy extensions. Add-on SDK extensions Extensions built using a set of high-level JavaScript APIs, which don't require a browser restart to install. WebExtensions We're working on a system called WebExtensions, which is a new way to develop WebExtensions for Firefox, that will be largely compatible with the system used by Chrome and Opera. Debugging Recommended practices Performance Security

Mozilla + Firefox extension development Developer Network How to build an XPCOM component in Javascript If you are looking for Add-on SDK solution for XPCOM JavaScript components then check out platform/xpcom module first. This is a "Hello World" tutorial for creating an XPCOM component in JavaScript. This tutorial does not describe how and why XPCOM works the way it does, or what every bit of the example code does. Implementation This example component will expose a single method, which returns the string "Hello World!". Defining the Interface If you want to use your component in other XPCOM components, you must define the interfaces that you want exposed. There are many interfaces already defined in Mozilla applications, so you may not need to define a new one. If an interface exists that meets your needs, then you do not need to write an IDL, or compile a typelib, and may skip to the next section. If you don't find a suitable pre-existing interface, then you must define your own. HelloWorld.idl Note that you must generate a new UUID for each XPCOM component that you create. Installation

Aardvark Firefox Extension To install Aardvark, just bookmark the following link, by dragging it to the bookmarks toolbar: Then, to activate Aardvark on a web page, click the bookmark. Not seeing the bookmarks toolbar in Chrome? Using Aardvark Once you have installed Aardvark as a bookmarklet (it takes about ten seconds!) As you glide the mouse over the page, you will see a red rectangle framing each element under the cursor. The Keystrokes You can then press certain keys on the keyboard (as indicated below) to do various things, such as delete the selected element from the page, isolate the element, or move the selection rectangle outward to the containing element. Things You Can Do With Aardvark Clean up unwanted banners and surrounding "fluff," especially prior to printing a page See how the page is created, block by block View the source code of one or more elements About the old Aardvark Firefox extension: For now anyway, the Firefox extension is retired.

Embedding FAQ:How do I... - MDC What is a service? A service is a singleton object implementing one or more XPCOM interfaces and registered with Gecko during startup. Normally it provide some functionality that is required from lots of places such as looking up preference settings, creating new windows, locating files, displaying prompt or password dialog boxes and so on. Embedders may wish to override some of the default service implementations with their own. How do I load a page? Get thensIWebNavigation interface on your webbrowser and call the loadURI method with the appropriate URI and flags. How do I block a load? Implement the nsIWebProgressListener interface and register it with the appropriate web browser object via the nsIWebBrowser::addWebBrowserListener() method. How do I watch/intercept a load before it happens? Implement the nsIURIContentListener interface, and register it with the appropriate web browser object via the nsIWebBrowser::parentURIContentListener attribute. How do I copy items to the clipboard?

Mozilla Application Suite Mozilla Application Suite [moʊˈzɪlə ˌæplɪˈkeɪʃn swiːt] (auch Mozilla Suite oder einfach Mozilla, siehe auch allgemeiner Begriff Mozilla) war eine aus Webbrowser, E-Mail-Programm und weiteren Werkzeugen bestehende freie Programmsammlung (engl. Application Suite) für das Internet, die vom Mozilla-Projekt entwickelt wurde. Mittlerweile hat die Mozilla Foundation die offizielle Entwicklung zugunsten des Webbrowsers Firefox und des E-Mail-Programms Thunderbird eingestellt. Die Suite wird seitdem unter dem neuen Namen SeaMonkey von einer kleinen Entwicklergemeinde weitergepflegt. Die Mozilla Suite steht unter mehreren freien Lizenzen wie der hauseigenen Mozilla Public License (MPL), sowie der GPL und LGPL. Geschichte[Bearbeiten] Ursprünglich war das Wort Mozilla nur die firmeninterne Bezeichnung für den Netscape-Webbrowser. Versionsgeschichte[Bearbeiten] Mozilla 1.0 erschien am 5. Eigenschaften und Funktionen[Bearbeiten] Mailkomponente von Mozilla 1.6 mit „Orbit 3+1“-Theme unter Linux

Application Versions How To Develop A Firefox Extension We Recommend These Resources Admit that you have always wanted to know how to develop a Firefox extension but never had the time to learn. Here I will walk you through and at the end of the article we will have created a fully functional Firefox extension! Our objective We will create a Firefox extension to find all links in the current web page, highlight those which have a target attribute and alert you how many links it found. The good part is that once you have done this, you have both an understanding of Firefox extension development as well as a blueprint for any extension you would want to develop in the future. What you need - setting up the developing environment First, let’s start with setting up your development environment. Create a different development profile The first step is to create a different profile in Firefox, since you will do some settings and changes that you probably don’t want for your regular profile. Profile manager on Windows Profile manager on Mac install.rdf

Extension development From MozillaZine Knowledge Base (Redirected from Dev : Extensions) Introduction Extensions allow programmers to add new features to Mozilla applications or allow existing features to be modified. Typically, extensions modify the “chrome” of their target application—the user interface and the scripts that add functionalty to that interface. Extension technologies You will almost certainly need to use the following technologies, although it is not necessary to be an expert in them. XUL (XML User-Interface Language). More advanced extensions may require the following technologies. XBL (XML Binding Language). Getting started Setting up your environment Please see Setting up extension development environment for development preferences you can set and extensions you can install. Tutorials There is a variety of third-party tutorials available which will help with general extension development or with learning specific technologies. On this Knowledge Base and Mozilla's website: On other websites: Books

Related: