How can I remove items from right-click context menu?

Discussion of features in Mozilla Firefox
Locked
davidho
Posts: 1
Joined: April 4th, 2010, 4:03 pm

Re: How can I remove items from right-click context menu?

Post by davidho »

'Fraid I'm not going to wade through 10 pages to see if anyone else has addressed the same problems I had. They may seem obvious once you know them but they caused problems to a beginner like me, so might do to others (this page still ranks high in Google).

In
http://kb.mozillazine.org/Chrome_element_names_and_IDs
There is SendLink and SendPage, which are for right-clicks on links and bare background respectively. So you might need to disable both, depending on your needs.

There are 2 userChrome.css files. One in
C:\Program Files\Mozilla Firefox\defaults\profile\chrome
editing which will not get the desired result.
The correct one is in:
C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\abcdef.default\chrome
So to get rid of the Send option for both, you need:

Code: Select all

/* Send Link... (when you right-click on link)*/
#context-sendlink{
display:none !important;
}

/* Send Page... (when you right-click on blank page background) */
#context-sendpage{
display:none !important;
}



The last problem I had is the most obvious, the userChrome file starts off as userChrome-example.css (my bold), so you need to edit out '-example' when you save.
User avatar
Dartman
Moderator
Posts: 11995
Joined: February 9th, 2006, 9:43 pm

Re: How can I remove items from right-click context menu?

Post by Dartman »

davidho wrote:'Fraid I'm not going to wade through 10 pages to see if anyone else has addressed the same problems I had.

At the very least you should have looked at the date of the first post. You would have realised this thread is outdated and ancient.

Thread closed.
Alcohol and Calculus don't mix. Never drink and derive.
Locked