On 01/12/2015 18:47, Miguel Real wrote:
> Well, i suspect that is correct. However i have my own extension for
> private use in my office that is not hosted on AMO and i wanted
> something similar..
>
> That isn't possible at all?
Yes it's possible.
I did something similar recently. I overlaid the addons manager
(about:addons) and injected some code that intercepted the [Options]
button for a particular extension and redirected it to my own code to do
what I needed. You could reverse engineer the "more" hyperlink and
redirect it to your own private page.
var lightningPrefs = {
guid: "{e2fda1a4-762b-4020-b5ad-a41df1933103}",
handleEvent: function(aEvent) {
var item = gListView.getListItemForID(this.guid);
if (!item)
return;
item.showPreferences = this.showPreferences;
},
showPreferences: function() {
var win = Services.wm.getMostRecentWindow("mozilla:preferences");
if (win) {
win.focus();
var doc = win.document;
var pane = doc.getElementById("paneLightning");
doc.documentElement.syncTreeWithPane(pane, true);
} else {
openDialog("chrome://communicator/content/pref/preferences.xul",
"PrefWindow",
"non-private,chrome,titlebar,dialog=no,resizable",
"paneLightning");
}
},
};
window.addEventListener("ViewChanged", lightningPrefs, false);
> terça-feira, 1 de Dezembro de 2015 às 10:22:11 UTC, Philip Chee
> escreveu:
>> On 30/11/2015 20:26, Miguel Real wrote:
>>> Hello Philip.
>>>
>>> I already have an about xul file and that is working when you
>>> have right clicked on an addon description and choose the about
>>> option from the context menu that is displayed.
>>>
>>> What i want is different. When you are in thunderbird addons
>>> list, after the short description, you have the "more" hyperlink.
>>> When i click this link, i want to display a page that have a
>>> detailed description of my addon with images or thumbnails, like
>>> other addons that i have installed (lightning for example).
>>>
>>> I just don't know how i can do it, i searched and i didn't find
>>> any answer for this. I don't know if it can be only for those
>>> addons that are hosted in the official repository too.
>>
>> I believe that this links back to
addons.mozilla.org and the
>> details come from the description and screenshots of your addon
>> page on AMO.
>>
>> Phil
>>
>> -- Philip Chee <
phi...@aleytys.pc.my>, <
phili...@gmail.com>
>>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org Guard us
>> from the she-wolf and the wolf, and guard us from the thief, oh
>> Night, and so be good for us to pass.
>
--
-==-