views:

59

answers:

3

Hello everyone! So I was just wondering if it was easy to develop a very simple Firefox plugin where you could click a button, and it would execute some Javascript code!

Please note that I have never developed any kind of plugin for firefox, I just want to know if that is an easy task to do (like less than an hour)

I would also like to redistribute this very simple plugin to my friends.

+2  A: 

If you just want to do this, you could create a Greasemonkey plugin instead. This is really simple.

marcgg
Great! Is it possible to redistribute it with Greasemonkey?
Moons
You can publish Greasemonkey scripts on the web and other people can install them (if they also have GreaseMonkey). I think there is also a tool which can create stand-alone extensions from GM scripts but I can't seem it find it.
RoToRa
You can distribute it via websites like http://userscripts.org/
marcgg
+2  A: 

Have a look at Jetpack: https://jetpack.mozillalabs.com/ or possibly GreaseMonkey: http://www.greasespot.net/

RoToRa
+1 for jetpack.
phoenix24
A: 

Or, if you wanted to actually create an extension you could use something like:

http://www.rietta.com/firefox/Tutorial/overview.html

which provides a nice complete walkthrough. Couple with MDC, and AMO you have everything you need to build a Firefox extension. All you need a a background is some HTML, CSS and JavaScript knowledge and you're there!

Alex