Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

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 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 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?

被采纳的解决方案

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.

定位到答案原位置 👍 2

所有回复 (1)

more options

选择的解决方案

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.