You could try adding a rule, for something other than selected or not
selected... I  have no idea what other attributes you can access besides
selected however

tab[label="Red"] {background-color: rgb(255,0,0) !important;}

might work if you set the tab's title to be "Red" (might get covered by the
tab's background image, not sure)

Other than that, I have no clue how you'd do it, plus it would still only
work for a particular title, if it worked at all... if this approach could
work then you might only detect the first character of the title if there is
some way to substr in css, any titles beginning with [ turn red for example
while titles beginning with ( turn blue... but I don't know your chances of
getting that far.

What you really want seems like the ability to give a particular tab an
additional style class, but your not going to be able to do that from GM, so
you need to identify which tab (somehow), I think your best bet for that is
"label" but that may not be how its implemented

On Wed, Dec 16, 2009 at 5:53 PM, spirit <[email protected]> wrote:

> Sam big thx for solutions, text may be less visible but it is enough
> for me.
>
>
> BD I know about userchrome.css, but i want make condition like this;
>
> var p = document.getElementsByTagName("p")[0].textContent =
> "someText";
>
> if (p == "someText"){
>    colorTAB <<< but HOW? :)
> }
>
> I dont know how execute this style using only JavaScript. TAB is
> object or what? How can I get him?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<greasemonkey-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.


Reply via email to