General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Duplicate Tab Macro
Posted by: mslayer
Date: September 14, 2009 01:26AM

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ------------------------------------------------------------------------------------------------------------------
# Adds an option in the Tab menu to duplicate the tab that you are viewing
# 
# By MSLAYER



_Duplicate{
	opentab($URL);
	}

_DuplicateTab_BuildMenu{
	
	$_dmenuname = _("Duplicate")." "._("tab");
	setmenu(TabButtonPopup,macro,$_dmenuname,_Duplicate,3);
	}


# ------------------------------------------------------------------------------------------------------------------
$OnInit=$OnInit."_DuplicateTab_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."DuplicateTab;";
Adds and option to duplicate the Tab on front. It doesn't copy the navigation History, but that would be cool, I just don't know how to do it.
The menu name do not have an internal translation ("Duplicate Tab"), is there a way to know the language installed?

Options: ReplyQuote
Re: Duplicate Tab Macro
Posted by: desga2
Date: September 14, 2009 11:45AM

You can duplicate tab with Drag&Drop the tab in a free tab bar space.

For language installed you can check the pref:
intl.content.langcode

K-Meleon in Spanish

Options: ReplyQuote
Re: Duplicate Tab Macro
Posted by: mslayer
Date: September 14, 2009 07:13PM

Hi desga, thanks. Yeah, I forgot about duplicating the Tab by dragging it.tongue sticking out smiley
About the language, I was referring to the macro language, if there is a special variable that will tell me the user language.
This I what I got in about:config with intl.content.langcode = en-US, but I'm using the Spanish version so :s

Options: ReplyQuote
Re: Duplicate Tab Macro
Posted by: JujuLand
Date: September 14, 2009 07:59PM

I think it's general.useragent.locale instead of intl.content.langcode

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote


K-Meleon forum is powered by Phorum.