I already created an extension that does the following:  When I run Thinderbird with the command line thunderbird -MyCustomParam1 "12345" my extension will open a compose window and add the parameter "12345" to the window.  Some code...
I want to develop a Thunderbird 12 addon. I have written a simple JS function. (File: "chrome\content\myApp.js"). This file is called by a xul-'onclick'-event. I have packed my addon as a .xpi file and then I have installed it. (All o...
If you are developing an extension for one of the mozilla applications (e.g. Firefox, Thunderbird, etc.) you define a extension id in the install.rdf.  If for some reason you need to know the extension id e.g. to retrieve the extension dir in local f...
I am working on writing an add-on for Thunderbird and would like to be able to cancel the sending of an email under certain conditions.  I have the following code which allows me to execute code before the email is sent, but I don't know how to s...
I want to make a thunderbird extension. So the first question is where to get started. Can you point me to some sample extensions in which I can plug in my code? This will significantly reduce the effort. I presume what we would write some javascript...
I am getting the error "id.replace is not a function"  Below is what I believe the relevant code is. I am missing something obvious, but my brain is currently mush.  getSyncDbFile: function (config, id) {     if (id === null)     {         co...
In my extension I'd like to manipulate some images. So I'm trying to read their raw pixels using canvas.  The problem is that if, in chrome code, I execute (img is an image in a content document):  var src = document.createElement("canvas...
I have developed a very simple Thunderbird extension. There is one simple .xul file which refers via script-tag to a .js file. In that javascript-file I am implementing an event listener on the compose-send-message event. When the send-button is clic...
My add-on, Color Source, needs to iterate files in a directory within my add-on (e.g., the content subdirectory) when the add-on is not unpacked (i.e., is kept zipped as an XPI).  We are using code like this to get the Addon object:  Cu.import("r...
I'm trying to add the jQuery library in the javascript module jquery.jsm. I'm using jquery.jsm in other modules. jQuery requires a window object, so I can not use the original jQuery code. I need to define a window object.  jquery.jsm:    con...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.