Yes,
GM_addStyle(".myClass { border: 3px dotted green;background-color: red; }");
will create a class style that you can then add via jQuery's .addClass('myClass')
.
.
Note: you can add more than 1 style with each GM_addStyle
statement, too. Like:
GM_addStyle
(
'.ClearFloats \
{ \
clear: both; \
} \
.HideIt \
{ \
display: none; \
} \
.StayOpaque \
{ \
opacity: 1 !important; \
} \
'
);
etc.
Brock Adams
2010-10-15 14:25:58