moving/deleting items on menu toolbar

User Help for Mozilla Thunderbird
Post Reply
tbirdphil
Posts: 23
Joined: April 3rd, 2021, 11:49 am

moving/deleting items on menu toolbar

Post by tbirdphil »

Thunderbird 78.9.1, windows 10 home

In thunderbird on the menu toolbar there are 'file edit view go message tools help'. if i choose to customize this, i can right click/customize and add items to the list. however...when i try to remove or rearrange these main items above, it will not let me do it. i can do the customize thing, left-click on say 'message' and drag it down to the customize window to remove it or try to move message to the other side of tools, but it will not let me do that. does anyone know how to do this or is it even possible?? thanks in advance
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: moving/deleting items on menu toolbar

Post by tanstaafl »

https://addons.thunderbird.net/en-US/th ... src=search is a legacy add-on that you used to be able to use to edit the existing contents (file, edit, view etc.) of the menu bar.

I assume somebody could write a MailExtension add-on to duplicate its functionality, but they might have to create a WebExperiment experiment in order to modify that part of the toolbars contents due to limitations of the WebExtensions API. Its not clear how long there will be support for the WebExperiment API in release and beta builds. Another issue is the UI lead is still overhauling the user interface and proposing major changes to the toolbars in future major versions. Read https://thunderbird.topicbox.com/groups ... ad65e1fac5 for example.

https://thunderbird-webextensions.readt ... ments.html
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: moving/deleting items on menu toolbar

Post by morat »

You can hide and move menuitems in a menu using the userChrome.css file.

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#printPreviewMenuItem { display: none !important; } /* Print Preview */

#menu_FileQuitItem { -moz-box-ordinal-group: 1 !important; } /* Exit */
#printMenuItem     { -moz-box-ordinal-group: 2 !important; } /* Print */
http://kb.mozillazine.org/UserChrome.css

Remember to set the toolkit.legacyUserProfileCustomizations.stylesheets preference to true, then restart.
tbirdphil
Posts: 23
Joined: April 3rd, 2021, 11:49 am

Re: moving/deleting items on menu toolbar

Post by tbirdphil »

With respect to the legacy add-on to edit the menu toolbar, it only works with up to vers. 64 of tb. it won't work with 78.9. Just sort of skimmed through the links you provided, will do some more serious reading later. With respect to the code to hide items within the menu itself provided by morat, I tried it and it works great! will probably do some of this also. thanks!
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: moving/deleting items on menu toolbar

Post by morat »

tbirdphil
Posts: 23
Joined: April 3rd, 2021, 11:49 am

Re: moving/deleting items on menu toolbar

Post by tbirdphil »

thanks for the info.
Post Reply