Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

How and with what can I write addons for Firefox?

more options

I have identified some needs for addons for both Firefox and Thunderbird. As an experienced programmer in several languages (including, most recently, Microsoft Office VBA), I am convinced I could write these myself. Where can I get information on the language to be used and the hooks into FF and TB?

I have identified some needs for addons for both Firefox and Thunderbird. As an experienced programmer in several languages (including, most recently, Microsoft Office VBA), I am convinced I could write these myself. Where can I get information on the language to be used and the hooks into FF and TB?

Всички отговори (2)

more options
more options

I learned about programming in WordBasic and VBA myself. To target web pages in browsers, you'll want to code in JavaScript and become fluent in the DOM (https://developer.mozilla.org/docs/We.../Document_Object_Model).

Depending on the scope of your needs, a user script might be a quicker way to attack most problems than an extension. Like an Office macro, a userscript runs in a host programming environment (in this case, the Greasemonkey extension) and allows you to experiment freely without a full build cycle (just save script, reload page). There are different APIs you need to learn to convert user scripts to extensions, but depending on your project, that might be overkill.

As an example, here's a page about a script I maintain (the code's very improvised, as you might expect when a lawyer writes JavaScript): https://www.jeffersonscher.com/gm/google-hit-hider/

More information: