You only go to Edit -> Config -> Menus (This is menus.cfg file in your profile)
Paste this littles lines of code (after the help lines commented in file):
LinkOpen{
%ifplugin layers
#Open In Ne&w Layer=layers(OpenLink)
Open In Bac&kground Layer=layers(OpenLinkBg)
-
%endif
#Open In &New Window=ID_OPEN_LINK_IN_NEW_WINDOW
Open In Backgroun&d Window=ID_OPEN_LINK_IN_BACKGROUND
}
Save changes in file.
Go to Edit -> Config -> User Macros, here create a new text file, renamed to Bonus.kmm and paste this code in it:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- Custom menu: Bonus
------------------------------------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------
Alert_1{
alert("This is a new menu option.","New menu",INFO);
}
Alert_2{
alert("This is other new menu option.","Other new menu",EXCLAIM);
}
# ----- PRIVATE
Bonus_BuildMenu{
setmenu(Main,popup,"B&onus");
setmenu("B&onus",macro,"Alert 1",Alert_1);
setmenu("B&onus",macro,"Alert 2",Alert_2);
}
$OnInit=$OnInit."Bonus_BuildMenu;";
# ------------------------------------------------------------------------------------
$macroModules=$macroModules."Bonus;";
Save changes in file.
Restart K-Meleon for changes take effect.
More info about this in links:
http://kmeleon.sourceforge.net/wiki/MacroLanguage
http://freenet-homepage.de/CoolMcKluus/software/kmeleon/project/reference/cfgfiles/menus.html
http://freenet-homepage.de/CoolMcKluus/software/kmeleon/project/reference/macrolanguage/ui.html
Edited 3 time(s). Last edit at 09/25/2007 01:09PM by desga2.