General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
jumplink
Posted by: mrbig
Date: December 24, 2008 06:18AM

i found this and just wondering if it would work with kmeleon it works with greasemonkey and firefox can anyone tell me if it will this is whats in the file after i unzipped it .

name of file install.rdf
<?xml version="1.0"?>

<RDF xmlns="[www.w3.org];
xmlns:em="[www.mozilla.org];

<Description about="urn:mozilla:install-manifest">
<em:id>{5CEC528D-624F-4b07-9990-D436F02B28AA}</em:id>
<em:name>Jump Link</em:name>
<em:version>1.3.2</em:version>
<em:description>Open redirect links. Directly! (e.g. in Hotmail messages without going through the frame window).</em:description>
<em:creator>Philip Mateescu</em:creator>
<em:contributor>Andrew Porden</em:contributor>
<em:contributor>Paul Dilley</em:contributor>
<em:homepageURL>[jumplink.mozdev.org];
<em:iconURL>chrome://jumplink/skin/jumplink32.png</em:iconURL>

<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.0</em:minVersion>
<em:maxVersion>1.6</em:maxVersion>
</Description>
</em:targetApplication>

<em:file>
<Description about="urn:mozilla:extension:file:jumplink.jar">
<emtongue sticking out smileyackage>content/jumplink/</emtongue sticking out smileyackage>
<em:locale>locale/en-US/jumplink/</em:locale>
<emconfused smileykin>skin/classic/jumplink/</emconfused smileykin>
</Description>
</em:file>

<!-- Mozilla -->
<em:targetApplication>
<Description>
<em:id>{86c18b42-e466-45a9-ae7a-9b95ba6f5640}</em:id>
<em:minVersion>1.6</em:minVersion>
<em:maxVersion>1.8+</em:maxVersion>
</Description>
</em:targetApplication>

<!-- SeaMonkey -->
<em:targetApplication>
<Description>
<em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id>
<em:minVersion>1.0</em:minVersion>
<em:maxVersion>2.0.*</em:maxVersion>
</Description>
</em:targetApplication>

</Description>
</RDF>
[[[[[[[[[[[[were do you put this file.the one above]]]]]]

name of file is
install
jscriptfile
const APP_NAME = "Jump Link";
const APP_RECURRENT_ID = "jumplink";
const APP_VERSION = "1.3.2";
const APP_CHROME_NAME = APP_RECURRENT_ID;
const APP_FILE = APP_RECURRENT_ID+".jar";
const APP_CONTENT_PATH = "content/"+APP_RECURRENT_ID+"/";
//~ const APP_SKIN_CLASSIC_PATH = "skin/classic/"+APP_RECURRENT_ID+"/";
const APP_LOCALE_ENUS_PATH = "locale/en-US/"+APP_RECURRENT_ID+"/";
const APP_SUCCESS_MESSAGE = APP_NAME+" "+APP_VERSION+" has been succesfully installed.\n"
const APP_SUCCESS_MESSAGE2 = "Please restart your browser to continue.";

const INST_TO_PROFILE = "Do you wish to install "+APP_NAME + ' ' + APP_VERSION +" to your profile?\n";
const INST_TO_PROFILE2 = "This will mean it does not need reinstalling when you update your browser.\n";
const INST_TO_PROFILE3 = "(Click Cancel if you want "+APP_NAME+" installed in the application's directory.)";

var err = initInstall(APP_NAME, APP_CHROME_NAME, APP_VERSION);

var instToProfile = (confirm(INST_TO_PROFILE+INST_TO_PROFILE2+INST_TO_PROFILE3));

var chromef = instToProfile ? getFolder("Profile", "chrome") : getFolder("chrome");
var err = addFile(APP_NAME, APP_VERSION, "chrome/" + APP_FILE, chromef, null);
if (err == SUCCESS) {
var jar = getFolder(chromef, APP_FILE);
if (instToProfile) {
registerChrome(CONTENT | PROFILE_CHROME, jar, APP_CONTENT_PATH);
registerChrome(LOCALE | PROFILE_CHROME, jar, APP_LOCALE_ENUS_PATH);
//~ registerChrome(SKIN | PROFILE_CHROME, jar, APP_SKIN_CLASSIC_PATH);
} else {
registerChrome(CONTENT | DELAYED_CHROME, jar, APP_CONTENT_PATH);
registerChrome(LOCALE | DELAYED_CHROME, jar, APP_LOCALE_ENUS_PATH);
//~ registerChrome(SKIN | DELAYED_CHROME, jar, APP_SKIN_CLASSIC_PATH);
}
err = performInstall();
// 999 means installing over the top of an old version (I think)
if (err == SUCCESS || err==999) {
alert(APP_SUCCESS_MESSAGE+APP_SUCCESS_MESSAGE2);
} else {
alert("Install failed. Error code:" + err);
cancelInstall(err);
}
} else {
alert("Failed to create " + APP_FILE +"\n"
+"Perhaps you don't have appropriate permissions? \n"
+"(write access to the /chrome directory). \n"
+"_____________________________\nError code:" + err);
cancelInstall(err);
}

[[[[[[[does the file above go in the profile folder]]]]]]]]]

name of file= todo
it had nothing in it





and name of file jumplink.jar
i know were the jar.file goes



but if i can use it were do the other files go or can i even use this so called jump link.













Edited 1 time(s). Last edit at 12/24/2008 06:20AM by mrbig.

Options: ReplyQuote
Re: jumplink
Posted by: guenter
Date: December 24, 2008 07:09AM

Not all Firefox extension will work. Obviously You want to try.

After You unzipped the xpi installer You had: folders with files inside.
The files go into the corresponding K-Meleon folders.

chrome - > chrome.

jar is a chrome file. It goes to ./K-Meleon/chrome.
(jar is another name for zip - peek inside You will need the info later)

outside the folders You have a install.rdf, *.js, and a *.manifest file.

install.rdf makes sure that the XPI installer only installs with applications that the authors want - not used by k-meleon.

install.js the same.

the manifest file is used in K-Meleon chrome - but You must edit its paths so that they fit to the new location.

For an example edit - compare Newsfox Firefox extension with K-meleon extension.

When the manifest is finished?

You may have to create a *.kmm. Examples that start a XUL application are newsfox.kmm , mtypes.kmm, console2.kmm in folder ./K-Meleon/macros.


JarTester an application that lets You start XUL during tests is at K-Meleon extension page. It helps You to choose which XUL files inside the jar must be started by the kmm.

During the first tests You should also look into error-console. It sometimes helps You to know if You have an error and what type. Errors that say ... cannot find a file in Firefox/chrome/... are normally show stoppers.

Options: ReplyQuote
Re: jumplink
Posted by: mrbig
Date: December 24, 2008 01:52PM

thanks a million.but it didnt have a jumplink.manifest file in it ,can it create one by looking at the newsfox.manifest file.and were did you say put the .js file merry christmas



Edited 1 time(s). Last edit at 12/24/2008 02:06PM by mrbig.

Options: ReplyQuote
Re: jumplink
Posted by: guenter
Date: December 25, 2008 08:30AM

Quote
mrbig
thanks a million.but it didnt have a jumplink.manifest file in it ,can it create one by looking at the newsfox.manifest file.

Name does not matter, there is normally only one manifest file in the xpi - in Firefox the file could be also named "app-chrome.manifest". That is the generic name that is given to it when it is created from installed-chrome.txt.
Make a backup and edit then rename the finished one and put to folder chrome.

Yes if the general structure inside jumplink.jar is like inside newsfox.jar You use newsfox.manifest as example for changes or to write it from srcatch.

Quote
mrbig
and were did you say put the .js file

After You unpacked the XPI.

install.js? is not used by K-Meleon = no where.

Any *.js that are in sub-folders e.g. ./components or ./defaults go to the K-Meleon sub-folder with the same name.

Any *.js in the jar stay there.

Quote
mrbig
christmas

the same to You.



Edited 1 time(s). Last edit at 12/25/2008 08:37AM by guenter.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.