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] sorry i misunderstand what you meant.. the autoresize of a dialog or window is handled by firefox xul manipulator so you'll notice that some xul extensions does no include fixed size properties which can cause problems in kmeleon when some of the dialog elemts become outside. this is very easy to fix by explanding the jar and opening the xul with the problem.. in our case it's 'editCookie.xul' you will find this section in the beginning of the xul..this informs the browser how to draw the dialog: [code] [sub][color=#da7465]<window id="CookieEditDlg" title="&CookieEditDlg.title.label;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" persist="width height screenX screenY" onload="InitEditCookie()"> <script type="application/x-javascript" src="addneditcookies.js"/> <script type="application/x-javascript" src="editCookie.js"/> <script type="application/x-javascript" src="libOut.js"/> <script type="application/x-javascript" src="datepicker/user-functions.js" />[/color][/sub] [/code] you see it does not include exact height,width to let the browser handle it according to which elemnts are collapsed (persist="width height screenX screenY") we fix the problem by including an exact width and height which includes the hidden elements so they are displayed properly when expanded [code] [sub][color=#da7465]<window id="CookieEditDlg" title="&CookieEditDlg.title.label;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" persist="width height screenX screenY" onload="InitEditCookie()"> [color=red]height="342" width="496"[/color] <script type="application/x-javascript" src="addneditcookies.js"/> <script type="application/x-javascript" src="editCookie.js"/> <script type="application/x-javascript" src="libOut.js"/> <script type="application/x-javascript" src="datepicker/user-functions.js" />[/color][/sub] [/code] another problem you might face with some extensions like in edit/add cokies is their prefs file. with some extensions the file name is unique to the extension itself.. no problem there you can use this file as is and add to k-meleon prefs folder but with some extensions the prefs file is not unique and is just named prefs meaning its settings are directly called from fireshit.. but you can't save this file in k-meleon prefs because k-meleon will not understand what to do with it or call the extension's default settings from it.. i see you understood that problem and renamed the file to addneditcookies-preferences.js but k-meleon cannot get the default settings from that file either because the prefs file name must be exactly as the sub category it adds in the browser prefs.js.. in this case it's only 'addneditcookies.js'. it's very easy to find out the right name for the extension prefs file, you just open that prefs file in notepad and take note of its general setting name.. in that case L [color=olive][sub]pref("addneditcookies.displaydeleteconfirmation", true); pref("[b][color=green]addneditcookies[/color][/b].lastsearch.host", ""); pref("addneditcookies.lastsearch.name", "");[/sub][/color] this means that the right name for the prefs file inside kmeleon should be [b][color=green]addneditcookies[/color][/b].js you can download revised add/edit extension from the privacy page>cookies manager thanks matt for your contributions and keep them coming![/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development