Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

How could I rename an item from the main menu bar ("File", "Edit"...)? With userChrome.css I've changed the "content", but the "label" got written next.

  • 1 resposta
  • 1 tem este problema
  • 3 visualizações
  • Última resposta de cor-el

more options

I'm trying to change the name of the main menu item "Bookmarks". As for the submenu items, I was successful with modifying their "content" via userChrome.css. But setting some different name in a "content" of the bookmarksMenu this way only results in displaying the new name of the menu with its label "Bookmarks" next. How can I change the label or supress its displaying?

I'm trying to change the name of the main menu item "Bookmarks". As for the submenu items, I was successful with modifying their "content" via userChrome.css. But setting some different name in a "content" of the bookmarksMenu this way only results in displaying the new name of the menu with its label "Bookmarks" next. How can I change the label or supress its displaying?

Solução escolhida

You can't change the name of a menu item via code in userChrome.css because you can only use that file to make CSS changes and not to change attributes.
If you use a content property {content: "new label"} then you only add some text before or after the existing text if you want the button to stay working.
You would need to create a simple extension to make such a change or possibly use the userchromeJS extension.

Ler esta resposta 👍 2

Todas as respostas (1)

more options

Solução escolhida

You can't change the name of a menu item via code in userChrome.css because you can only use that file to make CSS changes and not to change attributes.
If you use a content property {content: "new label"} then you only add some text before or after the existing text if you want the button to stay working.
You would need to create a simple extension to make such a change or possibly use the userchromeJS extension.