A Couple of userChrome Questions

User Help for Mozilla Thunderbird
Post Reply
User avatar
arandor
Posts: 155
Joined: November 5th, 2004, 1:27 pm
Location: USA

A Couple of userChrome Questions

Post by arandor »

I had to update from v60 to v91 yesterday (because of Gmail). I was avoiding the update since I knew some of my fairly extensive userChrome alterations would break, and they did.

1. Is there any way to see the effects of userChrome edits live without having to restart TB? If I have to restart TB after every tweak, it's going to take forever to get it updated properly.

2. I learned that we have to set the `toolkit.legacyUserProfileCustomizations.stylesheets` preference in order for userChrome changes to work. Are they planning on phasing out userChrome customizations? Is there, or will there be, a different way to modify the interface? Customization is one of the things that's kept me with Thunderbird for about 15 years. I would hate to lose it.

Thanks
siffemoz
Posts: 253
Joined: January 29th, 2016, 4:36 pm

Re: A Couple of userChrome Questions

Post by siffemoz »

1. Sometimes you can, sometimes you can't. https://addons.thunderbird.net/en-US/th ... rt-button/ will help.

2. Possibly, but I don't think it's likely; killing user.js might be a bigger target though.
https://bugzilla.mozilla.org/show_bug.cgi?id=1543752
morat
Posts: 6427
Joined: February 3rd, 2009, 6:29 pm

Re: A Couple of userChrome Questions

Post by morat »

How to get DOM info
http://forums.mozillazine.org/viewtopic ... #p14866214

You can live debug the userChrome.css file in the Style Editor in the Developer Toolbox.

Helpful tweak: http://forums.mozillazine.org/viewtopic ... &t=3058985
User avatar
arandor
Posts: 155
Joined: November 5th, 2004, 1:27 pm
Location: USA

Re: A Couple of userChrome Questions

Post by arandor »

Thanks for the replies! I'm going to check out the URLS you both included.

Thanks again.
User avatar
arandor
Posts: 155
Joined: November 5th, 2004, 1:27 pm
Location: USA

Re: A Couple of userChrome Questions

Post by arandor »

morat wrote:How to get DOM info
http://forums.mozillazine.org/viewtopic ... #p14866214

You can live debug the userChrome.css file in the Style Editor in the Developer Toolbox.

Helpful tweak: http://forums.mozillazine.org/viewtopic ... &t=3058985
Thanks for all the info. I've been using these tips to edit the messenger window, but it's not working for the compose window. I use the iframe selection menu to choose the compose window iframe. It shows me the compose window source in the inspector and lists all of the styles in the style editor, but it doesn't show my userChrome in the list of styles.

The style information from my userChrome file is applied to the compose window, but I can't get to my userChrome file in the style editor like I can when I'm editing the messenger window.

Any idea how I can see my userChrome file in the style editor when viewing the compose window iframe?

Thanks
User avatar
arandor
Posts: 155
Joined: November 5th, 2004, 1:27 pm
Location: USA

Re: A Couple of userChrome Questions

Post by arandor »

I think I found an answer (or a workaround?) to my own question. If I select the compose window iframe before I switch to the style editor, then the userChrome shows up in the list of styles. However, if I switch to the style editor while the messenger iframe is still selected and then select the compose window iframe, my userChrome does not show up for the compose window.

I don't know if this is a bug or a feature. :D

Thanks
morat
Posts: 6427
Joined: February 3rd, 2009, 6:29 pm

Re: A Couple of userChrome Questions

Post by morat »

I can't open the userChrome.css file in the style editor in the compose window.

Bug List
http://bugzilla.mozilla.org/buglist.cgi ... e%20Editor

Bug 1470780
http://bugzilla.mozilla.org/show_bug.cgi?id=1470780
http://bugzilla.mozilla.org/show_bug.cgi?id=1470780#c2

I can open the userContent.css file in the style editor in the compose window using the :root { --example: rgb(0, 0, 0); } trick in comment 2.

Note: use the pick element button on the editor#content-frame to select the <html> element to show the userContent.css entry in the inspector
Post Reply