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!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

userChrome not working

  • 2 відповіді
  • 0 мають цю проблему
  • Остання відповідь від adam.jan.piotrowski

more options

I would like to customize styling for recurring events in Calendar (115.11.1 on MacOS) without using extensions/add-ons. I enabled userChrome.css (`toolkit.legacyUserProfileCustomizations.stylesheets`) and the “has:” selector (`layout.css.has-selector.enabled`). In my userChrome.css, I added styles:

   li:has([alt*="Recurring"]) { background-color:grey !important; padding:1rem !important; }
   li:has(*[alt*="Recurring"]) { background-color:yellow !important; padding:1rem !important; }

Unfortunately, this seems to have no effect upon restarting Thunderbird. However, when I open Developer Toolbox (`Tools > Developer Toolbox > Developer Toolbox > Inspector` tab) suddenly everything works and the stylesheets are applied, but only until Thunderbird is shut down. Weirdly, other custom styles in userChrome.css work ok.

Is this intended behavior or a bug?

I would like to customize styling for recurring events in Calendar (115.11.1 on MacOS) without using extensions/add-ons. I enabled userChrome.css (`toolkit.legacyUserProfileCustomizations.stylesheets`) and the “has:” selector (`layout.css.has-selector.enabled`). In my userChrome.css, I added styles: li:has([alt*="Recurring"]) { background-color:grey !important; padding:1rem !important; } li:has(*[alt*="Recurring"]) { background-color:yellow !important; padding:1rem !important; } Unfortunately, this seems to have no effect upon restarting Thunderbird. However, when I open Developer Toolbox (`Tools > Developer Toolbox > Developer Toolbox > Inspector` tab) suddenly everything works and the stylesheets are applied, but only until Thunderbird is shut down. Weirdly, other custom styles in userChrome.css work ok. Is this intended behavior or a bug?

Усі відповіді (2)

more options

I cannot advise on the proper CSS to resolve your issue, but I can advise you that this is not a bug. I say that because use of userChrome.css is not officially supported.

Корисно?

more options

Thank you for your reply. I do realize that user styling via userChrome is not officialy supported. However, I sucessfully tested the CSS style in Firefox by copying the relevant elements form TB inspector. What is more, my experience with Thunderbird is that userChrome works great in Supernova. What I am trying to understand is the behaviour of some aspects of the style not being applied straight away.

Корисно?

Запитати

Щоб відповідати на повідомлення, ви повинні ввійти у свій обліковий запис. Поставте нове питання, якщо ви ще не маєте облікового запису.