Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Clean Redirect install ??
Posted by: heero
Date: September 08, 2014 08:45AM

how install Clean Redirect in K-MELEON/74 ?

Options: ReplyQuote
XPI installing
Posted by: guenter
Date: September 09, 2014 06:54AM

Quote
heero
how install Clean Redirect in K-MELEON/74 ?

Buon giorno,

Redirect Cleaner 2.4.0?


Mozilla XPI installing is still in the development phase.

K-Meleon cannot make any extension compatible that are designed for other browsers. But it/You can disable the comaptibilty checks in this case.

Currently no extensions are designed for K-Meleon - Mozilla's unwanted step child.

Any extension may have undesired effects, steel Your data or break Your browser.

You will get no individual help from the K-Meleon project.


Reference and info:

http://kmeleonbrowser.org/forum/read.php?9,128836

http://kmeleonbrowser.org/forum/read.php?1,129127

naruman's build tries to improve it further.

http://kmeleonbrowser.org/forum/read.php?2,128038


Whether the extension will install or work totally depends on the nature of the extension.

1.) Automatic Install


Quote
guenter
Dorian has implemented some infrastructure into 74.

Go Macro To Turn on and Off Firefox Extension Install.

Below is a version of the macro xpinstallext.kmm by JamesD.
Insert into xpinstallext.kmm and save as UTF-8.

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- xpinstallext.kmm
# ---------- Switch for addon xpi intstall to KM  ----------------
#
# Dependencies	: main.kmm 
# Resources	    : 
# Preferences	: "kmeleon.install_firefox_extension"
# Author        : JamesD  
# Version       : 0.3   2014-09-03
# -------------------------------------------------------------------------

_xpinstallext_perfcheck {
$_xpinstallext_PStatus = getpref(BOOL, "kmeleon.install_firefox_extension");
$_xpinstallext_PStatus ? 0 : setpref(BOOL, "kmeleon.install_firefox_extension", false) ; 
}

_xpinstallext_toggle {
menuchecked=getpref( BOOL , "kmeleon.install_firefox_extension" )==true;
togglepref(BOOL, "kmeleon.install_firefox_extension")  ; 
}

_xpinstallext_BuildMenu {
setmenu("&Edit", macro, _("Set FireFox extension install"), _xpinstallext_toggle, -1);
}

$OnStartup=$OnStartup."_xpinstallext_perfcheck;";
$OnInit=$OnInit."_xpinstallext_BuildMenu;";
# -------------------------------------------------------------------------
$macroModules=$macroModules."xpinstallext;";

The KML for it would read red text: (syntax: english string=translation string).

Goes ito locale e.g. de for German. Use editor to insert string and save as UTF-8 with e.g. FirefoxExtensionsInstall.kml (K-Meleon language file extension is kml)


Set FireFox extension install=Aktiviere Firefox Erweiterung installieren

The macro/menu is found in the Edit menu. Is checked when aktive.


The first extension that I would install is Disable Add-on Compatibility Checks

The extension prevents further compatibility checks and prevents the Firefox wait at each startup while it is checking addon compatibility. The addons are not compatible with K-Meleon and will probably be switched off again after the first check. Lach.

Install location for K-Meleon is always in used profile/extensions. Like Firefox.

Procedure:

Go to the extension's home page click install. Wait till it is downloaded.

Go URL about:addons.

Go to the little wheel with bubble-hint: Tools for all addons. Or local string.

Chose: Install Addon from file - or the local translation. ...

Most of the extensions will install. But not all. Exensions may or may not work.
Some extensions need a restart of the browser. currently, K-Meleon will not ask You for that. That may change in the foreseeable future. C naruman's version.

If this fails - this thread: Manual install.

Checked: Redirect Cleaner neads manual.

http://kmeleonbrowser.org/forum/read.php?1,129127

2.) Manual Install.

Quote
guenter

2.) Manual Install. You do that when 1.) does not work. But even here there is no guarantee that the extension of Your heart will install or work.

To make things easier I use a Firefox that also suppresses compatibility checks.
See above for an addon that does it.

I go to URL about:config and toogle extensions.alwaysUnpack to true.

I want my extensions unpacked if possible. Makes things easier.

Next the addon is installed in firefox from the addon homepage.

Then You go to the used firefox profile. User/%APPDATA%/Mozilla/Firefox/Profiles/(some number.default/extensions/Your extension (will be the newest)

Inside the folder is a file install.rdf.

Add to the list of supported apps.

<em:targetApplication>
<Description>
<!--K-Meleon-->
<em:id>kmeleon@</em:id>
<em:minVersion>74.0</em:minVersion>
<em:maxVersion>74.0</em:maxVersion>
</Description>
</em:targetApplication>



Kmeleon id for newer exes is {944df56f-c0ec-4d7b-94b6-f625c8cc96ea} RC2 or newer?

<em:targetApplication>
<Description>
<!--K-Meleon-->
<em:id>{944df56f-c0ec-4d7b-94b6-f625c8cc96ea}</em:id>
<em:minVersion>74.0</em:minVersion>
<em:maxVersion>74.0</em:maxVersion>
</Description>
</em:targetApplication>




The other apps have a similar syntax and often a hint what their id numaber stands for.

<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>3.5</em:minVersion>
<em:maxVersion>23.0</em:maxVersion>
</Description>
</em:targetApplication>


Now copy the addon's folder to K-Meleon's used profile/extensions and start KM.

Go to abbout:addons and see whether it is installed. Again: May work or not.

To call specific functionallity in an extension You might need a K-Meleon macro.
Onthe K-Meleon extensions page: You can find old macros which might be usable with fresh chrome files. Scavange there for old macros. If You are lucky they still work. If not You use them as example for You own coding.

Instead of a macro You can try to open the extensions URL: chrome/... directly.

Example: chrome://newsfox/content/newsfox.xul / I have this as a bookmark.

This would start an installed NewsFox extension.

Greetings from Germany



Edited 2 time(s). Last edit at 09/09/2014 07:18PM by guenter.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.