Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
Firefox user
Posted by: SandSaint
Date: September 20, 2007 11:07PM

I'm a Firefox user and I was wondering if there was a way to make the middle mouse key open links in a new tab/layer, without stealing focus from the Window/tab/layer I'm already in.

Options: ReplyQuote
Re: Firefox user
Posted by: SandSaint
Date: September 20, 2007 11:19PM

Also, is there a way to remove entries from the menus and and cascade menus(right click menus)?

Options: ReplyQuote
Re: Firefox user
Posted by: dpcdpc11
Date: September 21, 2007 07:59AM

Quote
I'm a Firefox user and I was wondering if there was a way to make the middle mouse key open links in a new tab/layer, without stealing focus from the Window/tab/layer I'm already in.
thats an easy one dude... go to TOOLS>MOUSE ACCELERATORS>FIREFOX 2.0

Options: ReplyQuote
Re: Firefox user
Posted by: desga2
Date: September 24, 2007 09:49AM

Quote
SandSaint
Also, is there a way to remove entries from the menus and and cascade menus(right click menus)?

Yes, you can modify all browser. For remove menus and context menus (right click menus) is recomended read this documentation:

http://kmeleon.sourceforge.net/wiki/ConfigFiles

Options: ReplyQuote
Re: Firefox user
Posted by: SandSaint
Date: September 25, 2007 02:32AM

Will this work? The previous response made little sense to me(desga2).

I'm trying to add a menu in that brings up an alert/popup which displays a message.
The Menu name is "Bonus" the labels are "alert1" and "alert2"

Bonus{
alert1=alert("1 2 3")
alert2=alert("I must not fear. Fear is the mind-killer.")
}

Will that work?

Also I want to see if adding this to my (profile's) menu.cfg will remove the options from the context menu

LinkOpen{
%ifplugin layers
#Open In Ne&w Layer=layers(OpenLink)
Open In Bac&kground Layer=layers(OpenLinkBg)
-
%endif
#Open In &New Window=ID_OPEN_LINK_IN_NEW_WINDOW
Open In Backgroun&d Window=ID_OPEN_LINK_IN_BACKGROUND
}

The purpose is to remove the commented out lines from the context menu when I click on a link. If anyone know or can corrent me that would help. Thanks.

Options: ReplyQuote
Re: Firefox user
Posted by: desga2
Date: September 25, 2007 01:04PM

You only go to Edit -> Config -> Menus (This is menus.cfg file in your profile)
Paste this littles lines of code (after the help lines commented in file):
LinkOpen{
%ifplugin layers
#Open In Ne&w Layer=layers(OpenLink)
Open In Bac&kground Layer=layers(OpenLinkBg)
-
%endif
#Open In &New Window=ID_OPEN_LINK_IN_NEW_WINDOW
Open In Backgroun&d Window=ID_OPEN_LINK_IN_BACKGROUND
}
Save changes in file.
Go to Edit -> Config -> User Macros, here create a new text file, renamed to Bonus.kmm and paste this code in it:
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Custom menu: Bonus 

------------------------------------------------------------------------------------
#
# Dependencies	: -
# Resources	: -
# Preferences	: -
#
# ------------------------------------------------------------------------------------

Alert_1{
alert("This is a new menu option.","New menu",INFO);
}

Alert_2{
alert("This is other new menu option.","Other new menu",EXCLAIM);
}

# ----- PRIVATE

Bonus_BuildMenu{
setmenu(Main,popup,"B&onus");
setmenu("B&onus",macro,"Alert 1",Alert_1);
setmenu("B&onus",macro,"Alert 2",Alert_2);
}


$OnInit=$OnInit."Bonus_BuildMenu;";

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

Save changes in file.
Restart K-Meleon for changes take effect.

More info about this in links:
http://kmeleon.sourceforge.net/wiki/MacroLanguage
http://freenet-homepage.de/CoolMcKluus/software/kmeleon/project/reference/cfgfiles/menus.html
http://freenet-homepage.de/CoolMcKluus/software/kmeleon/project/reference/macrolanguage/ui.html



Edited 3 time(s). Last edit at 09/25/2007 01:09PM by desga2.

Options: ReplyQuote
Re: Firefox user
Posted by: SandSaint
Date: October 01, 2007 07:04AM

I tried it but something seems off, it gave me an error on line 13, saying it had an open bracket

Options: ReplyQuote
Re: Firefox user
Posted by: SandSaint
Date: October 01, 2007 07:13AM

Invalid Macro Definition, missing open bracket line 13.

Options: ReplyQuote
Re: Firefox user
Posted by: SandSaint
Date: October 01, 2007 07:51AM

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

# ---------- Custom menu: Bonus

------------------------------------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------

{
Alert_1{
alert("This is a new menu option.","New menu",INFO);
}

Alert_2{
alert("I must not fear! Fear is the mind killer. ~Dune","I must not fear!",EXCLAIM);
}

# ----- PRIVATE

Bonus_BuildMenu{
setmenu(Main,popup,"B&onus");
setmenu("B&onus",macro,"Alert 1",Alert_1);
setmenu("B&onus",macro,"I must not Fear",Alert_2);
}


$OnInit=$OnInit."Bonus_BuildMenu;";

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



This is what I have so far based off what you posted, the second alert (I must not fear)(Alert_2) works but the first one (Alert_1) does not. Thanks for your help so far. Its been very useful.

Options: ReplyQuote
Re: Firefox user
Posted by: JujuLand
Date: October 01, 2007 03:59PM

Normal:


{ << delete this
Alert_1{
alert("This is a new menu option.","New menu",INFO);
}


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
Re: Firefox user
Posted by: kko
Date: October 01, 2007 04:18PM

# ---------- Custom menu: Bonus

------------------------------------------------------------------------------------ << delete this smiling smiley
#
# Dependencies : -

Options: ReplyQuote
Re: Firefox user
Posted by: JujuLand
Date: October 01, 2007 06:09PM

Who says more ?

:-)

kko, have you a new kmprefs for 1.5 ?

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
Re: Firefox user
Posted by: kko
Date: October 01, 2007 06:59PM

Yes, of course (in progress).

Options: ReplyQuote
Re: Firefox user
Posted by: SandSaint
Date: October 02, 2007 06:25AM

Oh, now I feel slow. I didn't notice it because I tend to ignore the comment areas.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.