Spyke
FirefoxCSS·Firefox CustomsbyZethasu

Change the color of this separators in about:preferences in the translation section?

Hello!

How could I change the separator color in about:preferences in the translation section?

When I put my code in userContent in @ -moz-document url("about:preferences#general")

It doesn't work, I guess that it's because it opens up in a new window, but when I put it outside of it it works, the only problem with that is that I don't know if it will also affect webpages.

Thanks!

View original on fedia.io
Zethasureply
fedia.io

It doesn’t work.

But isn’t this code in userContent because about:preferences is a webpage?

1

But it doesn’t work in user chrome, it works in userContent but only if I don’t put it inside @ moz something. I don’t know why, I even created a new css file to do it and nothing.

@MrOtherGuy any ideas on what to do?

1

Use this format to englobe all urls in about:preferences page:

@-moz-document url-prefix(about:preferences){...}

Edit: maybe you want something like this:

window, dialog{
    --in-content-border-color: red !important;
}
1

I managed to do it with this:

@-moz-document url("chrome://browser/content/preferences/dialogs/translations.xhtml"){
 #alwaysTranslateLanguagesTree > treecols:nth-child(1) > treecol:nth-child(1) {
  color: red !important;
 }
}

in userContent outside of @-moz-document url("about:preferences")

1

You reached the end

Change the color of this separators in about:preferences in the translation section? | Spyke