MozillaZine

DOM Inspector as extension

Talk about add-ons and extension development.
mai9

User avatar
 
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona

Post Posted July 27th, 2004, 1:43 pm

Is it possible to pack DOM Inspector as an extension?

I want this because not all builds include it, and if they do, I have to decide to install it the same moment I am installing FF. If you want it afterwards you have to reinstall the whole Firefox.

Can DOMi be an extension?

(is there anybody willing to pack it?)

goodwill
 
Posts: 91
Joined: October 6th, 2003, 3:39 pm

Post Posted July 28th, 2004, 3:23 am

I think they do now. Mine came with it.

asqueella
 
Posts: 4019
Joined: November 16th, 2003, 3:05 am
Location: Russia, Moscow

Post Posted July 28th, 2004, 4:14 am

You can try one of these
Didn't try myself yet.

mai9

User avatar
 
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona

Post Posted August 2nd, 2004, 7:37 am

I almost forgot to post that from the google page, the .xpi file I tried didn't work.

I can't find the menu item in "Tools" menu, and couldn't find the extension in the folder.

asqueella
 
Posts: 4019
Joined: November 16th, 2003, 3:05 am
Location: Russia, Moscow

Post Posted August 2nd, 2004, 9:50 am

It means that you were right, and we need to find somebody who is willing to repack it.

CatThief

User avatar
 
Posts: 1854
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA

Post Posted August 4th, 2004, 10:15 pm

I would like to see this, too. It was dropped from Thunderbird in the 0.7.x finals and anyone developing a theme finds this tool absolutely indispensible.
Still passionate for Mozilla themes and extensions, just not actively developing them for public release anymore.

mai9

User avatar
 
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona

Post Posted August 5th, 2004, 12:12 pm

I am glad to see that somebody else would find a stand-alone DOM Inspector usful :)

asqueella
 
Posts: 4019
Joined: November 16th, 2003, 3:05 am
Location: Russia, Moscow

Post Posted August 5th, 2004, 12:40 pm

If that makes you happy, I miss it in Thunderbird too :)

mai9

User avatar
 
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona

Post Posted August 5th, 2004, 12:42 pm

now, I *am* happy ;)

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted August 5th, 2004, 4:34 pm

I have managed to 'port' the Dom inspector to the 20040801 build... So, its doable but NOT easy tho

NOT FOR THE FAINT OF HEART

I basically took pieces of what comprises the DOM inspector from vaious builds until something worked (properly) :wink:

you will need :
inspector.jar ( TB ver NOT FF ver) from the most recent TB build that had it
winInspectorMain.ico ( goes in tbappdir\chrome\iconsdefault )
inspector.dll ( goes in TBappdir\components.. ver 1.7.20040.14587 works for me )
inspector.xpt ( goes in TBappdir\components )
inspector-cmdline.js ( goes in TBappdir\components )
inspector.js ( goes in TBappdir\defaults\pref )
the inspector GUID folder from FF ( goes in TBappdir\extensions )
the inspector folder ( that goes in TBappdir\res.. get it from the last TB build to have the DOM inspector )
you *might* need gkgfx.dll to be in TBappdir as well ..

before you run TB,
be shure to delete the TBappdir\chrome\chrome.rdf that will recreate the entries in the correct overlayinfo folders
be shure to delete the TBappdir\components\xpti.dat TB will recreate it correctly
be shure to delete the TBappdir\components\compreg.dat TB will recreate it correctly

if something is still broken, check if there are any entries for the DOM inspector in your profile
there should be ( it is on mine anyway )

<RDF:Description RDF:about="urn:mozilla:package:inspector">
<c:selectedLocale RDF:resource="urn:mozilla:locale:en-US:inspector"/>
<c:selectedSkin RDF:resource="urn:mozilla:skin:classic/1.0:inspector"/>
</RDF:Description>
in the chrome.rdf of your profile

38,inspector.xpt,0,2980,1086739864000
in your xpti.dat file ( you might have to mess with the item number )

lots of entries in the compreg.dat file ( i *think* you can delete the file and have TB recreate it )

PLEASE don't hold me responsible for screwing up your install, just b/u everthing and you should be fine

EDIT: turns out you also need to delete the XUL.mfl file too

Good Luck

mai9

User avatar
 
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona

Post Posted August 6th, 2004, 10:14 am

ausdilecce, I expected a linkt to "DOM_Inspector.xpi" at the end of your post ;)

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted August 6th, 2004, 3:22 pm

Don't I wish... It gets a bit tedious to have to do what I described to every nightly I download... THing is, I have no I dea how to package such a thing

I will give it a go, taking one of the dowloaded inspcetor.xpi's as a template.. I will tell you how it goes and post if I have something

mai9

User avatar
 
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona

Post Posted August 6th, 2004, 3:35 pm

ausdilecce wrote:THing is, I have no I dea how to package such a thing


ah ok...... I don't know either. I'll post here if I find something.

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted August 6th, 2004, 11:02 pm

Ok, I *think* I have it sorted...

I have made an XPI but have only tested it in my environ and *seems* to work :wink:

What I did to test is deleted my TB app dir completely ( profile was untouched )
try to install the inspector.xpi and although it did NOT show up the the EM, the 'DOM inspector' menu option *did* appear in the tools menu following a TB restart..

The Dom inspector *seems* to work ( can navigate nodes and all )

the xpi is at www.supportware.net/mozilla/inspector.xpi

Good luck

EDIT: the extension that I repackaged is ONLY for TB as the new TB versions do NOT include the DOM inspector ( I *am* talking about zip builds )
Last edited by Old Ausdilecce on August 7th, 2004, 1:15 am, edited 1 time in total.

Kasteo

User avatar
 
Posts: 670
Joined: August 24th, 2003, 9:16 am
Location: Thailand

Post Posted August 6th, 2004, 11:16 pm

Amazing... It works. :) Thank you, I thought I would never seen DOM Inspector in the Thunderbird again.
Noia 2.0 theme for Firefox & Thunderbird
- Compaq Presario 2190US, 2.4GHz, 1024MB DDR RAM, 40GB 5400rpm HDD.
- Windows Server 2003 Enterprise, Gecko/20040925 Firefox/0.10 (MOOX M3)

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 0 guests