I created to macros based on TabAllWindows one opens "Source Code" in a tab while the other open "Source Code" in a window
They are:
ViewSourceTab.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# --ViewSourceTab based on TabAllWindows v1.0- by jsnj -------------------------------------------------
#
# --by George Hall
# ------------------------------------------------------------------------------------------------------
ViewPageSource{
$_SourceExt=getpref(BOOL,"kmeleon.general.sourceEnabled");
$_SourceExt ? id(ID_VIEW_SOURCE)
pentab("view-source:".$URL);
}
ViewFrameSource{
$_SourceExt=getpref(BOOL,"kmeleon.general.sourceEnabled");
$_SourceExt ? id(ID_VIEW_FRAME_SOURCE)
pentab("view-source:".$FrameURL);
}
_ViewSource_BuildMenu{
setaccel("CTRL U","macros(ViewPageSource)");
setmenu("Page &Properties",command,"",ID_VIEW_SOURCE);
setmenu("Page Pro&perties",command,"",ID_VIEW_SOURCE);
setmenu("Page &Properties",macro,"So&urce Code",ViewPageSource);
setmenu("Page Pro&perties",macro,"So&urce Code",ViewPageSource);
setmenu("Frame &Properties",command,"",ID_VIEW_FRAME_SOURCE);
setmenu("Frame &Properties",macro,"So&urce Code",ViewFrameSource);
}
$OnSetup=$OnSetup."_ViewSource_BuildMenu;"
# ------------------------------------------------------------------------------------------------------------------
ViewSourceWindow.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# --ViewSourceWindow based on TabAllWindows v1.0- by jsnj ----------------------------------------------
#
# --by George Hall
# ------------------------------------------------------------------------------------------------------
ViewPageSource{
$_SourceExt=getpref(BOOL,"kmeleon.general.sourceEnabled");
$_SourceExt ? id(ID_VIEW_SOURCE)
pennew("view-source:".$URL);
}
ViewFrameSource{
$_SourceExt=getpref(BOOL,"kmeleon.general.sourceEnabled");
$_SourceExt ? id(ID_VIEW_FRAME_SOURCE)
pennew("view-source:".$FrameURL);
}
_ViewSource_BuildMenu{
setaccel("CTRL U","macros(ViewPageSource)");
setmenu("Page &Properties",command,"",ID_VIEW_SOURCE);
setmenu("Page Pro&perties",command,"",ID_VIEW_SOURCE);
setmenu("Page &Properties",macro,"So&urce Code",ViewPageSource);
setmenu("Page Pro&perties",macro,"So&urce Code",ViewPageSource);
setmenu("Frame &Properties",command,"",ID_VIEW_FRAME_SOURCE);
setmenu("Frame &Properties",macro,"So&urce Code",ViewFrameSource);
}
$OnSetup=$OnSetup."_ViewSource_BuildMenu;"
# ------------------------------------------------------------------------------------------------------------------