There are multiple such systems. Whatever Google's CSS/JS minifier tool is called does just this.
I spent a few years heavily re-styling Google+, when it was active. The CSS entity names (classes most especially, IDs not so much) were just random-alphabetic gibberish, which, worse, changed between site iterations. The large-scale abandonment of major changes to the site was a net positive for my case, as my rules no longer needed changing & updating.
I had many hundreds of site-specific CSS edits (most only a few lines) to deal with annoyances. G+ was the largest of those (100s+ lines). As a positive, I learned CSS reasonably well in the process.
These days I make heavier use of a few stock "annoyances" styles (headers, nesletters, social media, etc.), and only customise a site if it fails to be addressed by one of those.
Also Firefox / Fennec Fox's "Reader Mode" is usually (though not always) pretty useful.