Chris I wrote:

Many Netscape 7.1 users have complained about "Open link in new window"
being before "Open link in new tab" in the link context menu. This can
be changed via editing the file
\content\communicator\contentAreaContextOverlay.xul in comm.jar.

I would like to make an XPI that will replace that file with the new
one. There was nothing added to the file, nothing subtracted. I just
switched the order of those two entries.

How should I go about this? Is it possible to replace a file within
comm.jar via XPI? Can I create a separate JAR file that will override
that one overlay file? I definitely want to install it
'installation-wide' rather than per profile.


I think the preferred way to do this would be to use JavaScript to move the elements around instead of replacing whole files. Maybe something like (I haven't tested this)

newwindow = document.getElementById("context-openlink");
newtab = document.getElementById("context-openlinkintab");

document.documentElement.insertBefore("newtab", "newwindow");
_______________________________________________
Mozilla-xpinstall mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpinstall

Reply via email to