We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

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

All Replies (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.