I know how to inject CSS into a webpage, and change a certain class, but what if I don't want to change all of that class?
For example, say I have a div:
<div class="content">
<p> My favorite color is yellow </p>
</div>
<div class="content">
<p> My favorite color is green </p>
</div>
I want to use content scripts to edit the CSS of the .content
class, but only ones that contain the keyword, "green"
Would I have to use Javascript, if so, how would I do it?