I have a lot of colors on a site, which I want to change with an userscript. Imagine a CSS file with 1000 different selectors, where each has a color. That specific color is what I want to change. Every instance of that color. The user has to be able to change the color dynamically (like with an input box), so changing it with a CSS file will not work.
If it worked, then this would be how I would do it:
$("*").replace("#00aba0","#FF0000");
00aba0 is the color I want to replace with FF0000
Unfortunately that method is unavailable, but it would work something like that. Also, setting up a loop to do like string.replace(); isn't going to work, as it's a forum, and when you make a new reply, it will remove the text inside the reply box.
TO SUM UP:
I want to replace every instance of a color, with another color. There are many instances (let's say 500) of that color, which has to be changed. I cannot change it with a replacement of the CSS file, and it has to be changed dynamically.