I am using a Chrome browser extension called Stylebot to apply custom CSS formatting to particular elements on a webpage - the purpose of this is to selectively obscure sensitive information before creating a screencast.
The problem is that on different pages, the same element has a slightly different identifier (just a different number at the end), and rather than having to manually customise each page, I want to be able to apply the CSS to anything that patches a particular pattern.
Examples of some of the ones I've done manually:
#ext-gen115 em {
color: transparent;
text-shadow: 0 0 20px black;
}
#ext-gen26 em {
color: transparent;
text-shadow: 0 0 20px black;
}
#ext-gen498 em {
color: transparent;
text-shadow: 0 0 20px black;
}
#ext-gen52 em {
color: transparent;
text-shadow: 0 0 20px black;
}
As you can see, they all have the same form, but have a different number at the end (that can have a different digit count).
Can I match these with a pattern?
Thanks