Michael Buckley wrote:Ok, so I moved all the set up code inside the module and did the toolbox selection another way. Should work just by replacing the import.
Thanks a lot, I will be testing it in a few days - currently, I've been doing a few updates regarding the converter.
Here is the new stuff:
1. I've published the converter's source code on GitHub.
2. The converter now accepts an URL of an extension to convert and if provided, the URL will be pre-filled on the converter page and there will be a button for direct installs. This is to make it easier for people to convert and install extensions which are known to work, directly from links on a web site. To see how it works go to the first post of this thread where I added an install link to all extensions so it is no longer necessary to copy&paste links of extension pages or XPI's in order to convert them.
The format is like this:
http://addonconverter.fotokraina.com/?url=[URL]
where [URL] is an add-on's URL.
In the same way a maxVersion can be set in the URL and some options (checkboxes) can be disabled, for example:
http://addonconverter.fotokraina.com/?url=[URL]&checkboxName=off
where checkboxName is the HTML name of a checkbox in options. I won't go into detail with this since it's not going to be used often.
So now you can construct direct installation links for extensions if you wish to publish them on some sites, wikis, etc.
3. A small convenience improvement: the converter will now accept links to AMO extensions which do not offer download links on their front pages (due to asking for contribution), for example: https://addons.mozilla.org/en-US/firefox/addon/reloadevery/ - now this will be accepted by the converter.