I have a site that's maintained by a 3rd party. They will allow us to load our custom js file in the header so that we can manipulate the DOM as each page loads. I know how to swap out classes, etc. but I was curious if I can sniff for a HEX value and swap it out for another instead of adding classes here and there to do the same thing.
I don't want to this to one element (e.g. getElementByID or tag) I want it to swap out ALL instances of this variable. So if the CSS is: fred { color: #e3e3e3; } (and other classes are also using #e3e3e3) I want to be able to search for all instances of #e3e3e3 and change them to #d9d9d9. or something like that.
Thanks