This is not big prob, siria.
1. Let's edit menus.cfg in defaults:
paste this old good section code
# ----- Help
KMAbout{
%ifplugin update
Check for update=update(check)
%endif
%ifplugin macros
About &Plugins=macros(hm_Aplugins)
About &K-Meleon=macros(hm_Akm)
%else
About &Plugins=ID_LINK_ABOUT_PLUGINS
About &K-Meleon=ID_APP_ABOUT
%endif
}
KMDocs{
%ifplugin macros
&User's Guide=macros(hm_UserGuide)
&FAQ=macros(hm_FAQ)
%else
&User's Guide=ID_LINK_KMELEON_MANUAL
&FAQ=ID_LINK_KMELEON_FAQ
%endif
}
KMForums{
%ifplugin macros
K-Meleon &Forums=macros(hm_KMforum)
%else
K-Meleon &Forums=ID_LINK_KMELEON_FORUM
%endif
}
KMHome{
%ifplugin macros
K-Meleon &Home=macros(hm_KMhome)
%else
K-Meleon &Home=ID_LINK_KMELEON_HOME
%endif
}
&Help{
!KMHome
!KMForums
!KMDocs
!KMAbout
}
instead of present #Help section
2. Let's edit main.kmm.
Add this old good code to the end of file:
# ----- Help menu options open in new tab if tabs are enabled and the preference is true -----
$pref_helpmenu="kmeleon.plugins.macros.helpmenu.openintab";
hm_Aplugins {
macroinfo=_("View information on installed third party plugins");
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="about:plugins"; &OpenURL_InNew; } else { id(ID_LINK_ABOUT_PLUGINS); }
}
hm_Akm {
macroinfo=_("Display program information, version number and copyright");
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="about:"; &OpenURL_InNew; } else { id(ID_APP_ABOUT); }
}
hm_UserGuide {
macroinfo=_("View the K-Meleon User's Guide and Reference Manual");
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="http://kmeleon.sourceforge.net/manual/"; &OpenURL_InNew; } else { id(ID_LINK_KMELEON_MANUAL); }
}
hm_FAQ {
macroinfo=_("View the K-Meleon FAQ");
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="http://kmeleon.sourceforge.net/wiki/FAQ"; &OpenURL_InNew; } else { id(ID_LINK_KMELEON_FAQ); }
}
hm_KMforum {
macroinfo=_("Go to the K-Meleon forums");
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="http://kmeleonbrowser.org/forum/"; &OpenURL_InNew; } else { id(ID_LINK_KMELEON_FORUM); }
}
hm_KMhome {
macroinfo=_("Go to the K-Meleon home page");
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="http://kmeleon.sourceforge.net/"; &OpenURL_InNew; } else { id(ID_LINK_KMELEON_HOME); }
}
Open_KMReadme{
macroinfo=_("View basic information on the K-Meleon project");
$__l=getpref(STRING,"general.useragent.locale");
#open("resource://".($__l=="en-US"?"""/locales/".$__l))."/readme.html");
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="resource://".($__l=="en-US"?"""/locales/".$__l))."/readme.html"; &OpenURL_InNew; }
else { open("resource://".($__l=="en-US"?"""/locales/".$__l))."/readme.html"); }
}
Open_KMWiki{
macroinfo=_("Go to the K-Meleon Wiki");
#open("http://kmeleon.sourceforge.net/wiki/Welcome"
if (getpref(BOOL, $pref_helpmenu)) { $OpenURL="http://kmeleon.sourceforge.net/wiki/Welcome"; &OpenURL_InNew; }
else { open("http://kmeleon.sourceforge.net/wiki/Welcome" }
}
3. Go to
about:config and switch
kmeleon.plugins.macros.helpmenu.openintab
to
true
//Yes, the pref is still there, but it needs all that stuff to work
P.S. Our forum treats ':Ñ€' as :p and ':'+'(' like - just take care of it while copying code or just use 2 files already edited by me from attachment. Thanks to siria, 'smile bug' was fixed. But you still welcome to use an attachment to replace files mentioned.
Edited 4 time(s). Last edit at 06/06/2015 10:56PM by rodocop.