Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quickly write a firefox extension?

I'm to make a firefox extension which will inject some js code as well as whole jQuery lib. I want it to happen (the injection) when user pushes the button placed somewhere in the browser. I have read docs form MDC and other tutorials about making the extensions and they seem complicated to me. Technologies such as XPCOM or XUL are completely useles form me (I have no time to learn them in fact). My question is, is it another way of solving my problem then following MDC? I need to find quicker way of doing my task. I've already written the extension for Google Chrome, and it was a way simplier than doing it for Firefox.

like image 536
kaapa Avatar asked Dec 06 '25 15:12

kaapa


1 Answers

I would take a look at Greasemonkey. It shares some similarity with Chrome plugins in function (Script gets injected on the page, local storage, etc). As for using JQuery with Greasemonkey, look at this question: How can I use jQuery in Greasemonkey?

like image 128
Matt Sieker Avatar answered Dec 08 '25 09:12

Matt Sieker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!