MozillaZine

Need help removing Open menu item from right-click menu(MAC)

Discussion of features in Mozilla Firefox
nicolasfox
 
Posts: 6
Joined: November 5th, 2007, 12:50 pm

Post Posted June 29th, 2018, 6:36 pm

Hi

When I right click on a bookmark (firefox 61.0 on mac), the first 3 items are Open, Open in New Tab and Open in New Window. I would like to remove the Open menu item.

I think I need to put the following code into the userChrome.css file:


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#context-openlinkincurrent {
display: none !important;
}

My problem is that I can't find the profile folder or even any mozilla folder. I'm not sure if it's hidden or not. Can someone please help me with this.

thanks
Nick
Last edited by DanRaisch on June 29th, 2018, 6:47 pm, edited 1 time in total.
Reason: (MAC) added to subject line

the-edmeister

User avatar
 
Posts: 32121
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted June 29th, 2018, 9:36 pm

A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.

nicolasfox
 
Posts: 6
Joined: November 5th, 2007, 12:50 pm

Post Posted June 30th, 2018, 1:23 am

Thanks, that was very helpful. I found the folder (06wymbwq3.default-1481051531852) and I created a new folder within called chrome, then I created a userChrome.css file and added the code above but I'm still seeing the Open menu item when I right-click on a bookmark.

Do you know what I'm doing wrong?

n

nicolasfox
 
Posts: 6
Joined: November 5th, 2007, 12:50 pm

Post Posted June 30th, 2018, 11:05 am

Ok, after spending a considerable amount of time in the firefox source code, I found what I needed. This seems to be working:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

menuitem[command="placesCmd_open:window"], #placesContext_open {
display: none !important;
}

I used to use firefox a long time ago, then I moved to chrome. I am now moving back to firefox due to security concerns. For the life of me I can not think of one single good reason why to have that "Open" command on the bookmarks context menu.

I am not being facetious, but is that a mistake?

n

nicolasfox
 
Posts: 6
Joined: November 5th, 2007, 12:50 pm

Post Posted June 30th, 2018, 3:34 pm

I was wrong. It did take away the "Open" menu item but it also took away the "Open in a New Window" item. Very interesting...

Help me mozi one kenobe, you're my only hope.

n

ps. the reason I mentioned chrome in my last post is that it does not have the "Open" menu item. I was in gmail on a long distance phone call and I hit the Open command by accident and I lost my call. That's why I'm on such a rant...

the-edmeister

User avatar
 
Posts: 32121
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Post Posted June 30th, 2018, 5:35 pm

I am not happy with Firefox Quantum dues to issues like this. I do have Quantum installed and have been wasting way too much time over the last 7 months working to make it usable for me. I miss being able to use Menu Editor / Menu Wizard to hide menu items that I don't use and don't want showing, so this situation is a "game stopper" for me. It is either SeaMonkey or Basilisk for me in the future when I would need to stop using the older Australis versions of Firefox that I am continuing to use.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.

Frank Lion

User avatar
 
Posts: 20075
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted June 30th, 2018, 5:58 pm

nicolasfox wrote:I was wrong. It did take away the "Open" menu item but it also took away the "Open in a New Window" item. Very interesting...

I've read this thread twice and I've still no idea just how many of these Open entries you are trying to hide -

When I right click on a bookmark (firefox 61.0 on mac), the first 3 items are Open, Open in New Tab and Open in New Window. I would like to remove the Open menu item.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

LewS
 
Posts: 145
Joined: January 28th, 2014, 2:18 pm

Post Posted June 30th, 2018, 9:53 pm

@Frank - I'm pretty sure he means the first of the 3 items, the first "open".

@nfox - the code you used works (on just that item) using esr60 on Mac.
Why that is so is beyond me, but it does happen fairly often.

It's not so much a mistake as a redundancy; once you open the context
menu then opening that tab is one of possible actions. I confess I've never
used it, which so surprised me I ran the test.

Frank Lion

User avatar
 
Posts: 20075
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 1st, 2018, 1:03 am

LewS wrote:@Frank - I'm pretty sure he means the first of the 3 items, the first "open".

Code: Select all
#placesContext_open {
display: none !important;
}
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

nicolasfox
 
Posts: 6
Joined: November 5th, 2007, 12:50 pm

Post Posted July 1st, 2018, 7:33 am

Frank Lion wrote:I've read this thread twice and I've still no idea just how many of these Open entries you are trying to hide


Thank you Frank, your bit of code worked. It was just the top "Open" that I was trying to get rid of.

I still think that the firefox team should consider getting rid of that menu item. Not only is it redundant as LewS pointed out above but it's inconsistent with other context menus within firefox. If you right click on a link within the content area, the first 3 items are "Open Link in New Tab", "Open Link in New Window" and "Open Link in New Private Window".

These menu items are "correct" as far as I'm concerned. Removing the "Open" menu item in the Bookmarks area would make the UI more consistent.

n

Frank Lion

User avatar
 
Posts: 20075
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 1st, 2018, 8:34 am

nicolasfox wrote:Thank you Frank

You're welcome.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Return to Firefox Features


Who is online

Users browsing this forum: No registered users and 1 guest