Though you need to manually visit all those pages. And it wouldn't be easy to traverse DOM with those server side logic/condition.
IMHO, do it offline and out of browser would be easier. But I also think doing it directly with the codes can be hard too since there are so many way that those css will be added to templates.