Addon Manager List Generator

Re: Addon Manager List Generator

Postby mrbunnylamakins » Tue Apr 03, 2012 10:47 am

That work 1/2 way. The tab open to Add-On Manager, but the list was still blank.


Error: AddonManager is not defined
Source file: chrome://custombuttons/content/button.js?windowId=Firefox&id=custombuttons-button457@init
Line: 80
mrbunnylamakins
 
Posts: 253
Joined: Tue Dec 27, 2011 2:24 am

Re: Addon Manager List Generator

Postby LouCypher » Tue Apr 03, 2012 11:37 am

 
@lamakin: use Application.extensions.all for Firefox 3.6
https://loucypher.googlecode.com/svn/custombuttons/xml/mods/Extension%20List.xml
 
LouCypher
 
Posts: 122
Joined: Fri Dec 23, 2011 7:56 pm
Location: Jakarta, Indonesia (UTC+7)

Re: Addon Manager List Generator

Postby mrbunnylamakins » Tue Apr 03, 2012 12:04 pm

3.6

var file = Components.classes["@mozilla.org/extensions/manager;1"]
.getService(Components.interfaces.nsIExtensionManager)
.getInstallLocation("{my guid}");

4
Components.utils.import("resource://gre/modules/AddonManager.jsm");

AddonManager.getAddonByID("{my guid}", function(addon) {
addon.getResourceURL("file name"));
});


if (Application.extensions) {
// code for Firefox 3.6
} else {
// code for Firefox 4+
}


http://stackoverflow.com/questions/6308184/check-if-code-module-exists-in-firefox
mrbunnylamakins
 
Posts: 253
Joined: Tue Dec 27, 2011 2:24 am

Re: Addon Manager List Generator

Postby makondo » Tue Apr 03, 2012 2:37 pm

srazzano,

do you get the blank window opening/closing within a second when AM opens? Any chance this could be fixed?
I have no errors but 2 warnings:

Warning: WARN addons.manager: Exception calling callback: TypeError: aWin.document is null
Source file: chrome://custombuttons-context/content/button.js?windowId=Firefox&id=custombuttons-button17@init
Line: 47
===============
aWin.document.title = aWin.document.title + ': ' + cnt + '\u2007\u2007' + algListCount();


Warning: reference to undefined property Application.extensions
Source file: chrome://custombuttons-context/content/button.js?windowId=Firefox&id=custombuttons-button17@init
Line: 79
===============
showExtensionList(aWin, Application.extensions.all);
makondo
 
Posts: 1636
Joined: Sun Dec 25, 2011 7:17 pm

Re: Addon Manager List Generator

Postby srazzano » Tue Apr 03, 2012 3:18 pm

Are you using my last updated button? Should correct those warnings and the flash.
srazzano
 
Posts: 1508
Joined: Sat Mar 31, 2012 6:42 pm
Location: Las Vegas, Nevada

Re: Addon Manager List Generator

Postby makondo » Tue Apr 03, 2012 4:16 pm

I do now and it's working all right, thank you!
makondo
 
Posts: 1636
Joined: Sun Dec 25, 2011 7:17 pm

Re: Addon Manager List Generator

Postby makondo » Tue Apr 03, 2012 4:37 pm

I had the list for ext. open when i opened the Themes category and clicked the button. It brough my already opened exts. list to the front but i expected to get another list window with themes (just like your AMfix menu works, i thought).

Where's the css for the list? I'd like to change a few things there (but of course!). I'd like exts. names&versions in bold, ID regular, last updated bold. I also would like to remove the EXTENSION ID ... line 'cause it suppose to be a treecol kind of thing but is not and looks confusing (especially being in cap letters).

So, where's the css? DOMi is no help here, all i get is #listBox which, of course, leads me to nowhere.

BTW, did i mentioned that putting my style under the Help tab doesn't work?

TIA!
makondo
 
Posts: 1636
Joined: Sun Dec 25, 2011 7:17 pm

Re: Addon Manager List Generator

Postby srazzano » Tue Apr 03, 2012 5:11 pm

I'll work on the first issue but for individual styling of entries not possible. The list box is actually one long string so the css applies to the whole string. The listbox would have to be set up totally different to accomplish the styling you wish. Will check into it as well.
srazzano
 
Posts: 1508
Joined: Sat Mar 31, 2012 6:42 pm
Location: Las Vegas, Nevada

Re: Addon Manager List Generator

Postby mrbunnylamakins » Tue Apr 03, 2012 9:18 pm

I came to road block on button. So I took the one LouCypher provided and added the other features I just need to figure out the date added and dir code.

Extension List
mrbunnylamakins
 
Posts: 253
Joined: Tue Dec 27, 2011 2:24 am

Re: Addon Manager List Generator

Postby makondo » Tue Apr 03, 2012 9:57 pm

lamakin,
please do not post other buttons in buttons threads, it's confusing. This thread is about one particular button which is indicated in the thread title. If you have another button or need help with another button, start your own thread, please. Thanks!
makondo
 
Posts: 1636
Joined: Sun Dec 25, 2011 7:17 pm

PreviousNext

Return to Buttons made by forum users