MozillaZine

WebDevMenu Extension

Talk about add-ons and extension development.
edcatmur

User avatar
 
Posts: 88
Joined: November 12th, 2002, 1:42 pm

Post Posted January 8th, 2003, 10:41 am

Hi, I've just created a little extension that restores Mozilla's 'Web Development' submenu to the Tools menu, so now you can get to the DOM Inspector, Java Console, JavaScript Console and JavaScript Debugger without having to remember the chrome:// URIs

If anyone wants to try it out, I've uploaded it to http://catmur.co.uk/projects/mozilla/webdevmenu.xpi - to install, <a href="javascript:void(0)" onclick="var xpi = new Object(); xpi['WebDevMenu'] = 'http://catmur.co.uk/projects/mozilla/webdevmenu.xpi'; InstallTrigger.install(xpi, new function(name, result) {}); return;">click here</a>.

If you think it's useful, tell me so I can submit it to Phoenix Help.
Last edited by edcatmur on January 8th, 2003, 11:15 am, edited 1 time in total.

alanjstr
Moderator

User avatar
 
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here

Post Posted January 8th, 2003, 10:48 am

That would be good, except Phoenix doesn't come with them. You can build them from the CVS, though.

There's also http://www.joehewitt.com/mozilla/mozengineer/ which will allow you to create toolbar buttons.

But neither will do you any good if you don't have the actual stuff installed.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files

old Neil Parks
Moderator
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted January 8th, 2003, 10:49 am

I am using 12/28 Phoenix which (unlike later releases) has no problem installing extensions.

But when I clicked on your "to install click here" link, I got the following error as reported by the javascript console (which is readily available from the standard menus).

Error: doXPIInstall is not defined

alanjstr
Moderator

User avatar
 
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here

Post Posted January 8th, 2003, 10:52 am

lol. That's probably cause it was copied from Phoenixi Help, which actually defines the function. You can install the XPI just by clicking on it.
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files

edcatmur

User avatar
 
Posts: 88
Joined: November 12th, 2002, 1:42 pm

Post Posted January 8th, 2003, 11:21 am

yep, alanjstr is right lol. fixed now.

And yes, I'm using my own CVS build, so that's why it works in my browser!

so... I guess this won't be much use to people running mozilla.org builds (I imagine the same applies to mozEngineer though?)

Still, I'll keep it on my webspace for the people who are running their own or other peoples CVS builds :)

alanjstr
Moderator

User avatar
 
Posts: 9100
Joined: November 5th, 2002, 4:43 pm
Location: Anywhere but here

Post Posted January 8th, 2003, 11:31 am

As soon as they finish getting it to compile with Cygwin, I'll probably start building it myself. I kinda like the menu items instead of the toolbar button. But I don't really know how well the toolbar button works, so I can't make a final decision yet.

Anybody wanna custom compile a Win32 build for me?
Former UMO Admin, Former MozillaZine General Mod
I am rarely on mozillaZine, so please do not send me a private message.
My Old Firefox config files

seanmeister
 
Posts: 25
Joined: November 12th, 2002, 10:45 am

Post Posted January 9th, 2003, 6:04 am

alanjstr wrote:That would be good, except Phoenix doesn't come with them. You can build them from the CVS, though.


Dangit, I should have read that before I clicked the install link above. How do I uninstall it now? It doesn't show up in the installed extensions list in Prefs.

cdn

User avatar
 
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK

Post Posted January 9th, 2003, 6:37 am

code needs some changes : )

content/webdevmenu-overlay.xul

-- <!DOCTYPE window SYSTEM "chrome://webdevmenu/locale/webdevmenu.dtd">
+ <!DOCTYPE overlay SYSTEM "chrome://webdevmenu/locale/webdevmenu.dtd">

the install.js in the xpi needs looking over, I had to unzip the xpi to get the jar and add these lines to installed-chrome.txt

content,install,url,jar:resource:/chrome/webdevmenu.jar!/content/
locale,install,url,jar:resource:/chrome/webdevmenu.jar!/locale/en-US/webdevmenu/

[not exactly standard layout : )]

and it still hasn't appeared in Themes and Extensions, because :

content/contents.rdf

<RDF:Description about="urn:mozilla:package:webdevmenu"
chrome:displayName="WebDevMenu"
chrome:author="Ed Catmur"
chrome:name="webdevmenu"
chrome:packageVersion="0.1"
+ chrome:description="Adds DOM Inspector et al."
+ chrome:extension="true">
</RDF:Description>


hence Px doesn't know it's an extension

please compare your xpi with that of themer or trivial -> will help other people

for Alan's benefit, this gives you DOM Inspector a la Mozilla, which is definitively better than MozEngineer's interpretation, extension bugs permitting

edcatmur

User avatar
 
Posts: 88
Joined: November 12th, 2002, 1:42 pm

Post Posted January 9th, 2003, 4:18 pm

Thanks again, it's fixed now.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 3 guests