K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmOpenAsURLInNew

Original code by: Thanh Vu (baysao»gmail)
Submitted by: desga2



Notes:

This macro open selected text as URL in new tab.


Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder
(Edit > Configuration > Macros) and create the following text files:

OpenAsURLInNew.kmm

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

# ---------- Open As URL In New -----------------------------
#
# Dependencies        : main.kmm
# Resources        : -
# Preferences        : -
#
# ----------------------------------------------------------------------

Open_TextAsURLInNew{
$OpenURL=$SelectedText; $OpenURL==""?0:&OpenURL_InNew;
}

# - PRIVATE
_OpenAsURLInNew_BuildMenu{
setmenu(Selection,macro,"Open As URL in &New",Open_TextAsURLInNew,1);
}

$OnInit=$OnInit."_OpenAsURLInNew_BuildMenu;";

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


Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.