General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
About preferences by menu for K-Meleon 75
Posted by: JamesD
Date: June 24, 2015 03:03PM

For those of us who are too lazy to type about:preferences in the URL bar, this macro puts it in menu form under the 'Help' menu.

For KM 75 and later.

aboutprefs.kmm

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- aboutprefs.kmm
# ---------- Add a menu item to KMAbout for about:preferences 
#
# Dependencies        : main.kmm
# Resources           : -  
# Preferences         : -
# Version             : 1.0 2015-06-24  JamesD  		
# --------------------------------------------------------------------------------

aboutprefs_show {
macroinfo = _("Open 'about:preferences' in a new tab or window");
$OpenURL = "about:preferences";
macros("OpenURL_InNew");
}

_aboutprefs_BuildMenu {
# add another option to the About menu
if ($VERSION >= 33619975 ) {
setmenu("KMAbout",macro,"About Preferences","aboutprefs_show","About &K-Meleon");
}
}

## - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$OnInit=$OnInit."_aboutprefs_BuildMenu;";
$macroModules=$macroModules."aboutprefs;";



Edited 1 time(s). Last edit at 06/24/2015 05:06PM by JamesD.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.