Working partial answer - I am no macro expert
, this is just cutting and pasting from the main.kmm with small changes. This won't replace the current menu option, just will add a new one to do what you want. Change '&OpenURL_InBg;' to '&OpenURL_InNew;' inside .kmm file if you want it opened in the foreground.
Added inside menus.cfg:
!Selection{
Open as URL in Background=macros(Open_TextAsURLinBg)
}
Added as newURL.kmm in macros folder inside profile:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- Open as URL new window Functionality ------------------------------------------------------------------------------------
#
# Dependencies : main.kmm ($macroPrefBranch, JS) ??
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------------------------------------
Open_TextAsURLinBg{
$OpenURL=$SelectedText; $OpenURL==""?0:&OpenURL_InBg;
}
# ----- PRIVATE
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."newURL;";