Yes you can do it with a macro.
Set in Preferences to open new tabs "next to the current tab" ("Tabbed Browsing" panel) and change in your skin folder the file toolbars.cfg to set "New Tab" button to call a new macro that you must created; for example NewTabLast.kmm
Call the macro from toolbars.cfg with the sentence: macros(NewTabLast) in the "New Tab" button.
New{
%ifplugin tabs
macros(NewTabLast)|New
New Tab. Right-click for more options.
%else
ID_NEW_BROWSER
New Window
%endif
layerwindowhot.bmp[2]
layerwindowcold.bmp[2]
}
In the macro you must create the new macro function to toggle the preference:
kmeleon.tabs.onOpenOption
between values 0 (open at last by default) and 1 (open next to the current tab).
NewTabLast.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- NewTabLast ---------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
# Version : 1.0
# ---------------------------------------------------------------------------------------
#
NewTabLast{
togglepref(INT, "kmeleon.tabs.onOpenOption", 0, 1);
id(ID_NEW_TA;
togglepref(INT, "kmeleon.tabs.onOpenOption", 0, 1);
}
$macroModules=$macroModules."NewTabLast;";
K-Meleon in Spanish