W
W
wwwkat20152020-05-26 16:58:56
PHP
wwwkat2015, 2020-05-26 16:58:56

Shuffle and rename html (css) classes?

There is an html site, you need to generate random class names and replace the current names with random ones, in CSS and HTML.
The structure should be preserved, you just need to replace the names.
Perhaps there is some ready-made service for this, so as not to write something of your own?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2020-06-04
@wwwkat2015

https://github.com/sndyuk/mangle-css-class-webpack...
https://www.freecodecamp.org/news/reducing-css-bun...
https://evilmartians.com/chronicles/ postcss-module...
But in general, there is not much point in this. First, repeated lines are well compressed with gzip and brotli. Secondly, the styles themselves will not go anywhere, you can still peep and "steal". The only real use case that comes to my mind is "neutral" class names that won't be cut by some AdBlock.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question