# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Console Extension (Error Console) --------------------------------------------------------------------
#
# Dependencies	: main.kmm (OpenURL)
# Resources	: -
# Preferences	: -
#
# ------------------------------------------------------------------------------------------------------------------

Console2{
macroinfo=_("Open the enhanced error console");
setpref(BOOL,"consoleservice.enabled", true);
opennew("chrome://console2/content/console2.xul");
}

# ----- PRIVATE

_Console2_BuildMenu{
# tools menu
setmenu(Misc,macro,"Error &Console",Console2,"Error &Console");
setmenu(Misc,macro,"",moz_JSConsole);
setaccel("ALT VK_F12","macros(Console2)");
}
$OnInit=$OnInit."_Console2_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."Console2;";