K-Meleon 0.9 comes with the Flashblock extension already built in. But it is not enabled by default. To enable it i.e. to replace Flash applets by clickable buttons, users have to modify their userContent.css file. This is not easy to do for inexperienced users and not convenient at all. I have therefore adapted the original Flashblock extension to be enabled/disabled from out of K-Meleon's menus. The code required to inject the appropriate style rules into the userContent.css file (and to remove them again) is already there. I only had to rearrange the code.
The Flashblock extension is originally designed for Mozilla and Firefox. The technique used to dynamically decide whether to block a Flash applet or not (event handling), is not supported by K-Meleon 0.9 as far as I understand it now. I have therefore removed the related code.
Following, I want to describe the steps to integrate my adapted Flashblock into K-Meleon 0.9. This adapted version is based on the original Flashblock version 1.3.2. Note the limitations.
Download
and place it in K-Meleon's chrome directory (e.g. C:\Program Files\K-Meleon\chrome) replacing the existing file. Delete the folder "overlayinfo" and the files "chrome.rdf" and "overlays.rdf" if existent.
Select "Tools" > "Advanced Preferences" > "Macros..." to open K-Meleon's macro configuration file macros.cfg and apply the following changes:
XUL{
$layer==true ? pluginmsg(layers,OpenURL,$xul):opennew($xul);
}
AllPrefs{
$xul="about:config"; &XUL;
}
RSS{
$xul="chrome://aggreg8/content/aggreg8.xul"; &XUL;
}
Flashblock{
$xul="chrome://flashblock/content/options.xul"; &XUL;
}
Master{
$xul="chrome://pippki/content/pref-masterpass.xul"; &XUL;
}
Popups{
Search macros.cfg for "RSS{" to quickly find the correct location.
Select "Tools" > "Advanced Preferences" > "Menus..." to open K-Meleon's menu configuration file menus.cfg and apply the following changes:
Permissions{
macros(Cookies)
macros(Images)
macros(Popups)
macros(Flashblock)
-
macros(Master, Master Password)
macros(Cert, Digital Certificates)
}
Search menus.cfg for "macros(Popups" to quickly find the correct location.
When you are using one of the localized versions of K-Meleon, you may want to get the Flashblock Options displayed in your language. Flashblock 1.3.2 and thus this adapted version supports the following languages:
Note that not all of these translations are complete yet. To choose one of the above languages instead of the english default, apply the following changes while K-Meleon is closed:
Open K-Meleon's chrome directory (e.g. C:\Program Files\K-Meleon\chrome) and delete the file "chrome.rdf" if existent. Now open the file "installed-chrome.txt" and search it for "flashblock" until you find the following line:
locale,install,url,jar:resource:/chrome/flashblock.jar!/locale/en-US/flashblock/
Replace the highlighted en-US string by the identifier of your desired language and save the file.
Open your profile's chrome directory
(e.g. C:\Program Files\K-Meleon\Profiles\default\<random>.slt\chrome) and open the file
"chrome.rdf" there with a text editor (e.g. Notepad). Search it for "flashblock" until you find the
following:
<RDF:Description RDF:about="urn:mozilla:package:flashblock">
<c:selectedLocale RDF:resource="urn:mozilla:locale:en-US:flashblock"/>
</RDF:Description>
Replace the highlighted en-US string by the identifier of your desired language and save the file.
You have to apply this change to all your existing profiles!
When the Flashblock package's language identifiers in your K-Meleon's installed-chrome.txt and your current profile's chrome.rdf do not match, you will get an XML Parser Error when you call the Flashblock Options out of K-Meleon's menu!
Profiles created after editing installed-chrome.txt will be fine.
When using the Flashblock extension - the original one as well as the adapted version described here - in K-Meleon, you cannot use the whitelist feature. You can only enable/disable (install/uninstall) the extension. And you have to restart K-Meleon to make your changes take effect.