Firefox user
Posted by: SandSaint
Date: September 21, 2007 06:07AM

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.

Re: Firefox user
Posted by: SandSaint
Date: September 21, 2007 06:19AM

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

Re: Firefox user
Posted by: dpcdpc11
Date: September 21, 2007 02:59PM

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

Re: Firefox user
Posted by: desga2
Date: September 24, 2007 04:49PM

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

Re: Firefox user
Posted by: SandSaint
Date: September 25, 2007 09: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.

Re: Firefox user
Posted by: desga2
Date: September 25, 2007 08: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 08:09PM by desga2.

Re: Firefox user
Posted by: SandSaint
Date: October 01, 2007 02:04PM

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

Re: Firefox user
Posted by: SandSaint
Date: October 01, 2007 02:13PM

Invalid Macro Definition, missing open bracket line 13.

Re: Firefox user
Posted by: SandSaint
Date: October 01, 2007 02:51PM

# 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.

Re: Firefox user
Posted by: JujuLand
Date: October 01, 2007 10: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:31.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/75.0

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




Re: Firefox user
Posted by: kko
Date: October 01, 2007 11:18PM

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

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

Re: Firefox user
Posted by: JujuLand
Date: October 02, 2007 01:09AM

Who says more ?

:-)

kko, have you a new kmprefs for 1.5 ?

A+


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

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




Re: Firefox user
Posted by: kko
Date: October 02, 2007 01:59AM

Yes, of course (in progress).

Re: Firefox user
Posted by: SandSaint
Date: October 02, 2007 01:25PM

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

K-Meleon forum is powered by Phorum.