PK s:69L
install.jsvar XpiInstaller = {
// --- Editable items begin ---
extFullName: '3dr Forums Menu', // The name displayed to the user (don't include the version)
extShortName: '3dr', // The leafname of the JAR file (without the .jar part)
extVersion: '1.2+',
extAuthor: 'ADM',
extLocaleNames: null, // e.g. ['en-US', 'en-GB']
extSkinNames: null, // e.g. ['classic', 'modern']
extPostInstallMessage: 'Success! Please restart your browser to finish the installation.', // Set to null for no post-install message
// --- Editable items end ---
profileInstall: true,
silentInstall: false,
install: function()
{
var jarName = this.extShortName + '.jar';
var profileDir = Install.getFolder('Profile', 'chrome');
// Parse HTTP arguments
this.parseArguments();
// Check if extension is already installed in profile
if (File.exists(Install.getFolder(profileDir, jarName)))
{
if (!this.silentInstall)
{
Install.alert('Updating existing Profile install of ' + this.extFullName + ' to version ' + this.extVersion + '.');
}
this.profileInstall = true;
}
else if (!this.silentInstall)
{
// Ask user for install location, profile or browser dir?
this.profileInstall = Install.confirm('Install ' + this.extFullName + ' ' + this.extVersion + ' to your Profile directory (OK) or your Browser directory (Cancel)?');
}
// Init install
var dispName = this.extFullName + ' ' + this.extVersion;
var regName = '/' + this.extAuthor + '/' + this.extShortName;
Install.initInstall(dispName, regName, this.extVersion);
// Find directory to install into
var installPath;
if (this.profileInstall) installPath = profileDir;
else installPath = Install.getFolder('chrome');
// Add JAR file
Install.addFile(null, 'chrome/' + jarName, installPath, null);
// Register chrome
var jarPath = Install.getFolder(installPath, jarName);
var installType = this.profileInstall ? Install.PROFILE_CHROME : Install.DELAYED_CHROME;
// Register content
Install.registerChrome(Install.CONTENT | installType, jarPath, 'content/' + this.extShortName + '/');
// Register locales
for (var locale in this.extLocaleNames)
{
var regPath = 'locale/' + this.extLocaleNames[locale] + '/' + this.extShortName + '/';
Install.registerChrome(Install.LOCALE | installType, jarPath, regPath);
}
// Register skins
for (var skin in this.extSkinNames)
{
var regPath = 'skin/' + this.extSkinNames[skin] + '/' + this.extShortName + '/';
Install.registerChrome(Install.SKIN | installType, jarPath, regPath);
}
// Perform install
var err = Install.performInstall();
if (err == Install.SUCCESS || err == Install.REBOOT_NEEDED)
{
if (!this.silentInstall && this.extPostInstallMessage)
{
Install.alert(this.extPostInstallMessage);
}
}
else
{
this.handleError(err);
return;
}
},
parseArguments: function()
{
// Can't use string handling in install, so use if statement instead
var args = Install.arguments;
if (args == 'p=0')
{
this.profileInstall = false;
this.silentInstall = true;
}
else if (args == 'p=1')
{
this.profileInstall = true;
this.silentInstall = true;
}
},
handleError: function(err)
{
if (!this.silentInstall)
{
Install.alert('Error: Could not install ' + this.extFullName + ' ' + this.extVersion + ' (Error code: ' + err + ')');
}
Install.cancelInstall(err);
}
};
XpiInstaller.install();
PK FA6TJI I install.rdf
{8CF00006-46C2-41dd-B6CB-F02F6893115C}
3D Realms Forums NavMenu
1.2+
Navigate the 3DR Forums
ADM
Ciberblae
http://forums.3drealms.com/vb/member.php?u=850
chrome://3dr/skin/1.png
chrome://3dr/content/about.xul
content/
skin/
{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
1.0
2.0.0.*
PK s:6)N@ @ chrome/3dr.jarPK s:6#J
B content/about.xulTn0}^b+It{0l6c%C_?Io9<|f,9U@pUF4F׆BMP{gkhq94,ML18-B$-]2Uj4RX-"4M;;=Fp#yM3%tYh7E)4= ahne<>D5s+O*]к
D~j#;km_$K^x-^w>zb($%{|Ԡ6-pkV=)\st2-0.*.sfŎk[V ٸ[Kz{=K]6~bEo`,t;a.F(&m^v,8*{L1
sVrmMwK6-
-c'Y3?b1%A[>xPK X3~ @ content/common.jsJ+K.S()N/HH-K+Q(-LS*)zI%%@=
@E U%NEũEz))!I C
9ũ
`u9)A9^. tI|N2^ݡQRR`_T[W^Z_}
PK s:6iً\ content/contents.rdf]o01?4r*f$YB^8
+~LeI<3[Y d/^7K,d3Y<+EaOS2rES29ea,x3)4
VւmJn54A$"I$03/|HrezgŨu4]U̅_ԋ-:M&$, aq(FThMFƪ<5~UaǶIRkH
: J%l'F1= !gQa:İ&^
73n'f#pҾQn_
6^Fu2CPK bs:6OS1 content/menu.xulmo6?@
,R"%]iƈScPg
E
$_ĩlWMC =G(wg І+{w;eDZs&$0=i_A%:0\>3#v^@Y٠|(-qj&2k2N\Džip:H{m|n|%ܟ uӼ̴(g"H0;N'tYr