Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Way to hide context menu icons via userChrome.css (FF Nightly)?

  • 9 отговора
  • 1 има този проблем
  • 1 изглед
  • Последен отговор от Picgi

more options

Is there a Firefox tweak to completely hide context menu (right menu) icons? userChrome.css solutions are walcome.

Is there a Firefox tweak to completely hide context menu (right menu) icons? userChrome.css solutions are walcome.

Избрано решение

Replace the original style I posted with the updated version. Does it get rid of the remaining unwanted icons?

Прочетете този отговор в контекста 👍 0

Всички отговори (9)

more options

Firefox doesn't have context menu icons. Any icons you have in the context menu are added by add-ons. This should hide them:


@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* The above line should appear only once in userChrome.css */

#contentAreaContextMenu image,
.textbox-contextmenu image,
#placesContext image {
  visibility: hidden !important;
}

Променено на от Gingerbread Man

more options

Ok, thank, but it is odd I cannot immagine which extension is doing this... Your line is working, but not with the url bar (I right click on it and I see icons for "Undo", "Paste" and "Select all" item) nor with the bookmarks.

more options

Please provide a list of extensions and maybe one of use will recognize the culprit. Or, maybe you're using Stylish and have a userstyle that you forgot about installing?

more options

Try this;

Move your mouse to the top of the Firefox window, then right click. You will see a menu of the available toolbars. Select Customize. In the new window, look for the icon. When you find if, hold down the left button on it, and move it to where you want it to be. You can move any of the icons you want from here, but some icons are locked in place.

more options

@FredMcD What I see are icons in the right click menu (and only when I click on the Firefox interface, apparently) @the-edmeister No Stylish, but: Adblock plus, context search, dom inspector, dark background switcher, epubreader, flashgot, https-everywhere, mega, noscript, printedit, youtubeall html5

more options

Избрано решение

Replace the original style I posted with the updated version. Does it get rid of the remaining unwanted icons?

more options

YES! It does, thank you! How did you get the correct elements names? Using DOM inspector?

more options

Picgi wrote:

YES! It does, thank you!

You're welcome.

Picgi wrote:

How did you get the correct elements names? Using DOM inspector? 

Yes. Using the "Find a node to inspect by clicking on it" button is tricky when it comes to menus. You have to bring up the context menu using the Menu key on the keyboard instead of right-clicking, otherwise what you right-clicked will be inspected.

more options

It is tricky indeed, but when I found a last thing to correct (icons that appear on tabs right-click menu) I found also the Element Inspector addon which let me select the element shift-right clicking. So I added a rule to the list:

..previous rules..

.menu-iconic-left {

 visibility: hidden !important;

}

Променено на от Picgi