General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Open as URL in new layer
Posted by: prenaud
Date: December 19, 2007 02:42PM

Could someone help me with this? I would like the Open as URL function from the context menu to open the page in a new layer.

Thanks,

Pierre

Options: ReplyQuote
Re: Open as URL in new layer
Posted by: caktus
Date: December 19, 2007 04:27PM

Isn't "Open in new layer" option available when you right click on a link?

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: Open as URL in new layer
Posted by: misterp
Date: December 19, 2007 09:14PM

Working partial answer - I am no macro expert smiling smiley, 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;";

Options: ReplyQuote
Re: Open as URL in new layer
Posted by: kko
Date: December 19, 2007 09:47PM

Actually, all you need to do is hitting F2 and setting 'Selected Text' to open in a new layer. grinning smiley

Options: ReplyQuote
Re: Open as URL in new layer
Posted by: prenaud
Date: December 19, 2007 11:07PM

Quote
Actually, all you need to do is hitting F2 and setting 'Selected Text' to open in a new layer.

That was easy. Thank you.

Pierre

Options: ReplyQuote
Re: Open as URL in new layer
Posted by: misterp
Date: December 20, 2007 03:34AM

Quote
kko
Actually, all you need to do is hitting F2 and setting 'Selected Text' to open in a new layer. grinning smiley

Doh.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.