2

I want to disable the open file option in the menu tab in Firefox. I have written

menuitem[label=Open File]{
display:none;
}

but it's not working.

1 Answer 1

3

Use

#menu_openFile { display: none !important }

in userChrome.css. Keep

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

as the very first line.

How it looks

Exactly the same process is used to remove Email links ...

Add

#menu_sendLink { display: none !important }

to remove that:

With Email link ...

After making the change to userChrome.css and restarting the browser, we see that Email link ... is removed:

Without Email link ...

4
  • Its not working
    – sriraj
    Feb 15, 2014 at 8:18
  • yes bose, i am able to disable the menu items which don't have (dotdotdot) extension. but there are few menuitems "Send link..."with (3 dots) as extension i.e ellipse extension.how to disable these menuitems.
    – sriraj
    Feb 15, 2014 at 10:45
  • Thank you bose, can you tell how to disable the menu items with ... extension.
    – sriraj
    Feb 15, 2014 at 11:05
  • ok sure not from next time
    – sriraj
    Feb 15, 2014 at 11:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.