Search Support

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.

Learn More

TB 78.4.0, userContent.css has no effect on message editor content

  • 3 replies
  • 1 has this problem
  • 39 views
  • Last reply by sfhowes

more options

What I'm trying to change is color and style of the quoted text when I'm composing a plain-text reply (image attached). I found a lot of tips and discussion about this specific issue, and followed them all but no luck so far.

Here are the things I've tried:

  • In Thunderbird's config editor, I added the preference toolkit.legacyUserProfileCustomizations.stylesheets=true (another screenshot attached)
  • Navigated to my profile folder (I made sure it's the correct one by looking at Help > Troubleshooting Information > Profile Folder). Closed TB.
  • Created a subdirectory named chrome (lower case)
  • Placed the following userContent.css there:

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

span[_moz_quote="true"], pre[_moz_quote="true"] { color: #619cd1 !important; font-style: italic !important; }

  • Started Thunderbird and tried replying to a plain text message - nothing has changed.

I also tried with or without the second @namespace line (html), and with or without the double quotes around "true". also tried renaming it to "userChrome.css" just in case. None of that had any effect.

Next up.... opened the Developer Toolbox and inspected the window (yet another screenshot attached). As you can see, I'm looking at the correct element. The inspector tells me that I have the right selector ( span[_moz_quote="true"] ). But in the "Rules" tab, the only rules that show up are from the internal stylesheets. It's not that my userContent is being overriden, it just doesn't show up at all. And when I scroll through the sources in the Style Editor, I can't find it either.

What am I missing?

I should mention, I was having this problem since TB 68 if not before that. I tried creating a completely new profile, just in case some extension hadn't cleaned up after itself properly. Didn't work, and there's still no effect after the update to 78.4.0. 32-bit, running on Win 7.

Any assistance is appreciated.

What I'm trying to change is color and style of the quoted text when I'm composing a plain-text reply (image attached). I found a lot of tips and discussion about this specific issue, and followed them all but no luck so far. Here are the things I've tried: * In Thunderbird's config editor, I added the preference '''toolkit.legacyUserProfileCustomizations.stylesheets=true''' (another screenshot attached) * Navigated to my profile folder (I made sure it's the correct one by looking at Help > Troubleshooting Information > Profile Folder). Closed TB. * Created a subdirectory named '''chrome''' (lower case) * Placed the following userContent.css there: <code> @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace html url("http://www.w3.org/1999/xhtml"); span[_moz_quote="true"], pre[_moz_quote="true"] { color: #619cd1 !important; font-style: italic !important; }</code> * Started Thunderbird and tried replying to a plain text message - nothing has changed. I also tried with or without the second @namespace line (html), and with or without the double quotes around "true". also tried renaming it to "userChrome.css" just in case. None of that had any effect. Next up.... opened the Developer Toolbox and inspected the window (yet another screenshot attached). As you can see, I'm looking at the correct element. The inspector tells me that I have the right selector ( span[_moz_quote="true"] ). But in the "Rules" tab, the only rules that show up are from the internal stylesheets. It's not that my userContent is being overriden, it just doesn't show up at all. And when I scroll through the sources in the Style Editor, I can't find it either. What am I missing? I should mention, I was having this problem since TB 68 if not before that. I tried creating a completely new profile, just in case some extension hadn't cleaned up after itself properly. Didn't work, and there's still no effect after the update to 78.4.0. 32-bit, running on Win 7. Any assistance is appreciated.
Attached screenshots

Modified by largactyloid

Chosen solution

Here is what I have in my userContent for plain text replies to plain text mail:

/* Quoted text colour for plain text */

span[_moz_quote="true"] {
  color: navy !important;
  background-color: mistyrose !important;
}
pre[_moz_quote="true"] {
  color: navy !important;
  background-color: mistyrose !important;
}

The namespace lines are unnecessary. Note that if your default format is html, you must Shift+Reply to make the reply plain text, even if the received message is plain text. See attached picture.

The colors and background for quoted html content can also be set in userContent.

Read this answer in context 👍 1

All Replies (3)

more options

Chosen Solution

Here is what I have in my userContent for plain text replies to plain text mail:

/* Quoted text colour for plain text */

span[_moz_quote="true"] {
  color: navy !important;
  background-color: mistyrose !important;
}
pre[_moz_quote="true"] {
  color: navy !important;
  background-color: mistyrose !important;
}

The namespace lines are unnecessary. Note that if your default format is html, you must Shift+Reply to make the reply plain text, even if the received message is plain text. See attached picture.

The colors and background for quoted html content can also be set in userContent.

Modified by sfhowes

more options

Excellent, thank you. Yep, was aware of the Shift+Reply thing but the problem was that xul namespace line - removed it and all works now. I guess I must've copied it from some userChrome.css file, where it's really needed.

more options

Glad it's working, but in fact my userChrome also has no namespace line (TB 78). I think XUL has been removed.