ok, i fixed it.. download from same link: (aource included)
the problem was with the parameter passed to 7z to decompress the extension, so added double quotes.
$pendparm7z=("""" & $extpath & """")
$extparm = ("x " & $pendparm7z)
remember this is not a magic converter and most extensions won't just work with kmeleon with converting it..
it's mostly experimental to make it easy to test an extension, in the unlikely event that an extension works
go to k-meleon's macro folder k-meleon\macros and look for the testing macro "testermacro.kmm" and rename it something similar to the extension
e.g. if the extension name is blueblue rename the macro to blueblue.kmm and then open the macro in notepad and replace all entries called 'festertester' to 'blueblue' and then change the menu command "pending extension" to something else.. this is important if you're going to use the extension and macro because otherwise when you convert your next extension, the macro will be replaced with a new one for the tester extension.
e.g. default generated macro:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- pending macro for ported extension---------------------------------------------------------------------------------------------------------------
testerfester{
$OpenURL="chrome://ubafuckera/content/ubafuckera.xul";
$ExecMacros="OpenURL_InNewWindow"; &ExecMacros_Frames;
}
testerfester_BuildMenu{
setmenu("&Tools",macro,"Pending Extension",testerfester);
}
$OnInit=$OnInit."testerfester_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."testerfester;";
change to e.g (if extension name is blueblah)
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- pending macro for ported extension---------------------------------------------------------------------------------------------------------------
blueblah{
$OpenURL="chrome://ubafuckera/content/ubafuckera.xul";
$ExecMacros="OpenURL_InNewWindow"; &ExecMacros_Frames;
}
blueblah_BuildMenu{
setmenu("&Tools",macro,"open blueblah",blueblah);
}
$OnInit=$OnInit."blueblah_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."blueblah;";
here's what i usually do, first i expand the xpi extension with 7z explorer window and look inside the jar.. if i find anything called "overlay.xul" i delete the extension.. if there isn't overlay, then there's a chance that the extension can work and i send it to the converter.
for easy access, you can add the converter 'km-extvert.exe' as a command for opening xpi extensions from folder options>file types>xpi
edit: remember, if you convert an extension and it doesn't work; remember to delete its chrome and component files from kmeleon chrome and component folders.. or you'll be left with lots of junk files inside kmeleon.. especially if you'll be testing a lot of extensions.
Edited 2 time(s). Last edit at 03/13/2010 09:00AM by disrupted.