Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=disrupted] kmeleon extensions manager has been updated to 5.7. the update adds a new feature to enable reverting to original or default pref settings pre install e.g. when installing an extension like multipagine, it sets itself as homepage... the new feature enables to set back the homepage to default after uninstalling the extension so the user won't be faced with 'page not found' on the startup page. few extensions can make use of that feature but it an be extremely useful for extensions that modify important or ebvn minor settings and can cause inconvenience for the user when the extension is uninstalled and when those settings are not reverted here is the template for 5.7 compatible uninstall ini [url=http://kmext.sourceforge.net/keih/template5.7.ini]http://kmext.sourceforge.net/keih/template5.7.ini[/url] you'll notice the new entry: [defaultpref] this should not be confused with the [pref] entry which removes the extension defaults pref file (*.js) the defaultpref should have raw prefs corresponding to original prefs in kmeleon that has been modified after that extension was installed. for example in multipagine, i want the homepage to revert back after an uninstall so i add the value like this: [color=maroon][b][sub][defaultpref] 1=user_pref("browser.startup.homepage", "resource:///readme.html");[/sub][/b][/color] this tells the extension manager that when this extension is uninstalled, this value has to be written exactly as is in prefs reverting back the homepage to readme there can also be other usages for this value and not necessarily just for reverting default prefs..for example when an extension is uninstalled and you want to make sure it uses original values if it's reinstalled etc. e.g [color=maroon][b][sub][defaultpref] 1=user_pref("my.extensionhasbeeninstalledbefore", true);[/sub][/b][/color] you can enter as many [defaultpref] values as you wish with no limitations no extension needs to be updated to use the new template if it has no use for it..using the old template will not cause any problems with 5.7, defaultpref is a 'convenience feature for the benefit of the user and making the extension better for now only 5 extensions make use of the defaultpref feature multipagine speeddial restart3 bbc iplayer proxy family filter proxy kem 5.7 can be downloaded from kmext.sf.net/kem.htm[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development