Development :
K-Meleon Web Browser Forum
K-Meleon development related discussions.
XUL/chrome and K-Meleon
Posted by:
kko
Date: March 29, 2005 03:40PM
I'm using K-M (0.9) and Mozilla. To my convenience I've tweaked Mozilla to copy the target URL of a HyperLink to the Windows clipboard, when I left-click the link while pressing the Alt key. This way, I send the URL to my download manager. The tweak takes place in \chrome\comm.jar > content\communicator\contentAreaClick.js > function handleLinkClick(). This archive/script/function is also a part of K-M. But when I reproduce my tweak there, it doesn't work. As far as I can see, K-M does simply not execute the function handleLinkClick().
Any ideas, how to fix that? Is it possible to fix it at all?
Re: XUL/chrome and K-Meleon
Posted by:
rmn
Date: March 29, 2005 04:14PM
Very easy. I don't know how to do it using jar/js/xul files, but K-Meleon's macros & accelerators are designed exactly for this kind of thing.
1st part: copy the target URL of a HyperLink to the Windows clipboard
In macros.cfg, add this macro:
copyLinkURL {
setclipboard($LinkURL);
}
2nd part: when I left-click the link while pressing the Alt key
In accel.cfg, add:
ALT LButton = macros(copyLinkURL)
Happy customizing! =)
P.S. Both macros.cfg and accel.cfg can be found in K-Meleon\Profiles\<profilename>\********.slt\ .
Re: XUL/chrome and K-Meleon
Posted by:
kko
Date: March 29, 2005 05:12PM
Your tip is exactly what I have been looking for !
Works fine.
A big Thank You, rmn, for Your prompt response !
I really missed this feature :-)