Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a way to remove items from a Firefox right-click menu?

3,812 views
Skip to first unread message

H. Wiggins

unread,
May 7, 2015, 2:23:30 AM5/7/15
to mozilla-sup...@lists.mozilla.org
I can't count the number of times I've hit menu items I didn't mean to
hit while using Firefox with my laptop computer (and red trackball).

I use very few of the Firefox menu items, and those I use I'd want at the
top of the menu.

As just one example, when I right click on an image, I *never* select
"Email image" on purpose, yet, I constantly accidentally hit that button
(which then means I have to kill and confirm yet another set of buttons
when the mail user agent Thunderbird then kicks in unnecessarily).

Likewise with right clicking on a web page background, where I never
select "view background image" yet I often select "view page source", so,
I'd want to move that selection near the top of the menu list.

In summary, what I'd like to do is *remove* some of the Firefox popup
menu entries (actually most of them) and sort the remaining menus entries
to my liking for each of the pop up menus, by way of customization.

Can removing and sorting pop-up menu entries be easily done with Firefox
37.0 Mozilla Firefox for Ubuntu?

Ron K.

unread,
May 7, 2015, 4:09:40 AM5/7/15
to mozilla-sup...@lists.mozilla.org
About 10 years ago I used an extension that enabled rearranging menus, so
one probably is still available at AMO. An addon is easier than learning
and preparing CSS rules for the userChrome.css file. Some articles should
still be available at Mozillazine KB.

--
Ron K.
Who is General Failure, and why is he searching my HDD?
Kernel Restore reported Major Error used BSOD to msg the enemy!

Caver1

unread,
May 7, 2015, 7:07:29 AM5/7/15
to mozilla-sup...@lists.mozilla.org
Menu filter is a good addon for this.
https://addons.mozilla.org/en-US/firefox/addon/menu-filter/?src=ss

--
Caver1

»Q«

unread,
May 7, 2015, 11:07:01 AM5/7/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.3095.143099684...@lists.mozilla.org>,
Caver1 <cav...@inthemud.org> wrote:

> On 05/07/2015 04:09 AM, Ron K. wrote:

> > About 10 years ago I used an extension that enabled rearranging
> > menus, so one probably is still available at AMO.

That was almost certainly the Menu Editor extension, which I used also.

ME development stopped, and someone created a successor, Menu Editor
II. Then original ME development started again, and the MEII author
dropped his work. Then ME stopped again, leaving no good Menu Editor
being maintained.

AMO still has MEII, but I wouldn't recommend using it, based on that
history.

> Menu filter is a good addon for this.
> https://addons.mozilla.org/en-US/firefox/addon/menu-filter/?src=ss

Excellent! Thanks, Caver1!


EE

unread,
May 7, 2015, 1:50:28 PM5/7/15
to mozilla-sup...@lists.mozilla.org
I thought the "send item" stuff was removed from the context menus long
ago. There is code you can enter into a userChrome.css file that you
create and put into a chrome subdirectory in the Firefox profile to get
rid of items like that.

#context-sendpage {display: none !important;}
#context-sendimage {display: none !important;}
#context-sendlink {display: none !important;}

MrGatoChile

unread,
May 7, 2015, 6:24:11 PM5/7/15
to mozilla-sup...@lists.mozilla.org

H. Wiggins

unread,
May 7, 2015, 7:45:46 PM5/7/15
to mozilla-sup...@lists.mozilla.org
On Thu, 07 May 2015 07:06:53 -0400, Caver1 wrote:

> Menu filter is a good addon for this.
> https://addons.mozilla.org/en-US/firefox/addon/menu-filter/?src=ss

This "Menu Filter 8, by Geoff Lankow" seems to do 99% of what I need!
I can see why it's called a "filter" and not an "editor" because it
doesn't seem to re-order menu items (but, since it can delete them,
re-ordering is much less needed).

Once installed, I just went to Firefox: Tools > Addons > Menu Filter 8 >
Preferences and a bunch of named menus showed up, with a representation
of their menu items, which you can "Hide Selected" or "Show Selected".

So, this should do almost everything I asked for!

It takes a bit getting used to figuring out which menu is which, since
it has entries for the following:
- Main Context Menu
- Tab Context Menu
- Bookmarks Context Menu
- File Menu
- Edit Menu
- View Menu
- History Menu
- Bookmarks Menu
- Tools Menu
- Developer Tools Menu
- Help Menu
- Toolbar/Panel History Menu
- Panel Bookmarks Menu
- Toolbar Bookmarks Menu

H. Wiggins

unread,
May 7, 2015, 9:55:06 PM5/7/15
to mozilla-sup...@lists.mozilla.org
On Thu, 07 May 2015 18:45:10 -0500, H. Wiggins wrote:

> It takes a bit getting used to figuring out which menu is which, since
> it has entries for the following:
> - Main Context Menu

Thank you for this wonderful suggestion of using "Menu Filter 8".
I figured out that the "Main Context Menu" is the one that was
bothering me the most.

And, then I realized that the different 'contexts' were listed in
the Menu Filter Preferences GUI, but in some order that is wholly
unknown to me. All of the entries look familiar; but it seems to be
a superset, and not a representation of any one menu.

There's no hint in the GUI which entry belongs on which menu
either, so, at first, it's a bit confusing. It just takes getting
used to.

For instance, when I right-click on a thumbnail in Firefox, the
first menu entry by default is "Open Link in New Tab" and the
last menu of that context-sensitive list is "Secret Agent" (the
last default entry is probably "Inspect Element (Q)".

All these items show up in the Menu Filter Preferences GUI under
"Main Context Menu", but tons of other items show up also, so, there's
no order or sequence to the list that I can see. I think it's a
superset of *all* possible main context menu entries (which wasn't
what I had expected).

But, I'm getting used to it, and already have removed at least half
the Firefox menu entries (which is a good thing). The only problem,
so far, is that the "view image in another tab" seems to have
disappeared (but it wasn't one of the hidden entries), so, I may
need to reset things back to default, and start over again now that
I have some practice.

While there is a "disable" button in the Menu Filter 8 preferences,
there isn't a "return to defaults" button, which would be nice.

Of course, you can just manually unhide each entry, one by one, but,
if there is a minor flaw, it's that there isn't a "reset to default"
button. No big deal though.

Thanks for the help and advice!h

»Q«

unread,
May 8, 2015, 1:33:43 AM5/8/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.3171.143105010...@lists.mozilla.org>,
"H. Wiggins" <hayley...@sbcglobal.net> wrote:

[re Menu Filter extension]
> All these items show up in the Menu Filter Preferences GUI under
> "Main Context Menu", but tons of other items show up also, so, there's
> no order or sequence to the list that I can see. I think it's a
> superset of *all* possible main context menu entries (which wasn't
> what I had expected).

I think Firefox itself works from a superset and automagically filters
based on what kind of element you right-click, and Menu Editor is
essentially providing a global override for each item that you mark
hidden. (ICBW, but if I'm right the Menu Editor GUI makes more sense.
To me, at least.)

> The only problem, so far, is that the "view image in another tab"
> seems to have disappeared (but it wasn't one of the hidden entries),
> so, I may need to reset things back to default, and start over again
> now thatI have some practice.

Before touching Menu Editor, I don't have that item in my context
menu for images. If some extension was providing it for you, you may
have run into a compatibility issue between Menu Editor and that
extension.

> Of course, you can just manually unhide each entry, one by one, but,
> if there is a minor flaw, it's that there isn't a "reset to default"
> button. No big deal though.

Menu Editor stores its settings in the file menufilter.json in your
profile folder. Deleting it should get you back to square one. Info
on finding the profile folder is at
<https://support.mozilla.org/kb/profiles-where-firefox-stores-user-data>.

Also, in case you hadn't noticed, double-clicking an item in Menu Editor
toggles it, without having to keep moving the cursor back and forth
from the show/hide buttons.

»Q«

unread,
May 8, 2015, 1:47:12 AM5/8/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.3163.143103744...@lists.mozilla.org>,
MrGatoChile <besrml-p...@yahoo.cl> wrote:

> https://addons.mozilla.org/ro/firefox/addon/menu-editor-ii/

That extension hasn't been updated since 2008, but the Fx UI has been
overhauled since then, including some menu stuff. Are you sure the
extension still works ok?

H. Wiggins

unread,
May 8, 2015, 2:28:46 AM5/8/15
to mozilla-sup...@lists.mozilla.org
On Fri, 08 May 2015 00:33:01 -0500, »Q« wrote:

> Also, in case you hadn't noticed, double-clicking an item in Menu Editor
> toggles it, without having to keep moving the cursor back and forth
> from the show/hide buttons.

This is a nice hint.
Thanks!

Gabor

unread,
May 8, 2015, 8:58:45 AM5/8/15
to mozilla-sup...@lists.mozilla.org
»Q« wrote:
>
>> The only problem, so far, is that the "view image in another tab"
>> seems to have disappeared (but it wasn't one of the hidden entries),
>> so, I may need to reset things back to default, and start over again
>> now thatI have some practice.
>
> Before touching Menu Editor, I don't have that item in my context
> menu for images. If some extension was providing it for you, you may
> have run into a compatibility issue between Menu Editor and that
> extension.
>

You can do any sort of context-menu "open" function in another tab using
middle-click or <ctrl>-click instead of left-click. For example "view
image" when middle-clicked will open the image in a new tab.

This is also pretty useful in history drop-down, etc.

--
Gabor

»Q«

unread,
May 10, 2015, 1:58:13 PM5/10/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.3186.143108992...@lists.mozilla.org>,
Gabor <ga...@alacron.com> wrote:

> You can do any sort of context-menu "open" function in another tab
> using middle-click or <ctrl>-click instead of left-click. For
> example "view image" when middle-clicked will open the image in a new
> tab.
>
> This is also pretty useful in history drop-down, etc.

You may be interested in the Stay-Open Menu extension. The main
feature is to let you middle- or ctrl-click without the menu closing.
This is very handy if you want to click several menu items -- you don't
have to keep re-opening the menu for each one. *Most* handy for opening
several bookmarks from different parts of a bookmarks menu.

MrGatoChile

unread,
May 12, 2015, 2:47:56 PM5/12/15
to mozilla-sup...@lists.mozilla.org
I'm using with Fx 38.0 and it's working without problem.
0 new messages