Greasy Fork is available in English.

Discuții » Cerere de creare

Change Text Color Conditionally

§
Postat în: 05-02-2021

I'm trying to figure out how to change the color of a text. I've included a screenshot of the site I'm working with and the element with it's HTML. I basically want "Customer Reply" to show as orange so it jumps out at us. Is this possible?

wOxxOmMod
§
Postat în: 05-02-2021

Should be possible via pure CSS:

[data-bip-attribute="status"] {
  color: orange !important;
}

You can install it using Stylus extension or a similar one. To make it a userscript see this example.

§
Postat în: 05-02-2021

You could also do the same thing using a for condition or even a regex if you really want to stick with js

§
Postat în: 06-02-2021

Is there a way to only make "Customer Reply" status orange. I'm not sure to evaluate on what the text says.

§
Postat în: 11-02-2021

send the whole website html here so we can see

Postează un raspuns

Autentifică-te pentru a posta un răspuns.