Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How to remove context menu icons except flyout menus

  • 7 réponses
  • 1 a ce problème
  • 1 vue
  • Dernière réponse par cor-el

more options

I'd like to hide the icons from all context menus, with the exception of the search engine icons in the two flyout menus created by the extensions Image Search Options and Context Search.

I found the css to hide all icons, but that hides the search engine icons in these two menus as well.

I'd like to hide the icons from all context menus, with the exception of the search engine icons in the two flyout menus created by the extensions Image Search Options and Context Search. I found the css to hide all icons, but that hides the search engine icons in these two menus as well.
Captures d’écran jointes

Solution choisie

What rule do you currently use?

Maybe you only need to add a '>'.

Does this work for you? I do not have such items in the right-click context menu that have an icon, so I can't test it.

#contentAreaContextMenu > :-moz-any(menuitem,menu) > .menu-iconic-left {visibility:hidden!important;}
Lire cette réponse dans son contexte 👍 1

Toutes les réponses (7)

more options

Maybe add a :not(<id>) to the selector in your style rule to exclude this sub menu. I assume that this menu is added by an extension as this doesn't seem to be a standard item.

more options

How do I find the id of a context menu item? Having a hard time inspecting the menu itself instead of the page. I may have no idea how to properly use the inspector.

more options

Solution choisie

What rule do you currently use?

Maybe you only need to add a '>'.

Does this work for you? I do not have such items in the right-click context menu that have an icon, so I can't test it.

#contentAreaContextMenu > :-moz-any(menuitem,menu) > .menu-iconic-left {visibility:hidden!important;}
more options

This is what I was using, which strips all the icons from all menus:

menuitem .menu-iconic-icon {display:none !important}

Your code works! Now how about removing the icons from the tab context menu? I have a single trash can icon, which I believe was added by Tab Mix Plus, on the "Closed Tabs List" entry.

more options

You can add more selectors:

:-moz-any(#contentAreaContextMenu,#tabContextMenu) > :-moz-any(menuitem,menu) > .menu-iconic-left {visibility:hidden!important;}
more options

Now my menu is exactly how I like it to be. Thank you very much.

more options