Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use firefox "hello world" sample extension?

I downloaded this Firefox sample extension from mozilla.org, I modified the file install.rdf and changed maxVersion value to 3.6.10 (also tried 3.6.*, 100 and *) and I added a new string with name "hello world" and the value is the path where the folder of the sample extension is to HKCU (also tried HKLM)/Software/Mozilla/Firefox/Extensions/ into the registry.

I start Firefox, go to Tools > Addons, and it says it needs to restart, I restart and go there again and the plugin appears but says "Not compatible with Firefox 3.6.10", and every button appears disabled. Also removing the registry key and folder doesn't uninstall it.

Is there something else I have to change to use the hello world sample in Firefox 3.6.10?

like image 798
jarkam Avatar asked Oct 02 '10 04:10

jarkam


People also ask

How do extensions work in Firefox?

Some addons or extensions work in the background and perform their functions automatically. Other extensions will add menu options to the menu when you right-click on a web page as shown below. Most extensions will also add small icons to the right of the address field in the browser.

How do I install a local extension in Firefox?

Installing. In Firefox: Open the about:debugging page, click the This Firefox option, click the Load Temporary Add-on button, then select any file in your extension's directory. The extension now installs, and remains installed until you restart Firefox.


1 Answers

Update 2018

This sample extension was created in 2000s and Firefox switched to a radically different extension system called "Web Extensions" in 2017. The old extensions will not work in the current versions of Firefox and have to be rewritten completely.


The easiest way to start developing an extension is putting a "pointer" file in the extensions folder in the profile directory. I wouldn't touch the registry method until the deployment moment.

Thanks for reminding me to update the example extension. Updated it now.

like image 128
Nickolay Avatar answered Oct 16 '22 20:10

Nickolay