I need to add a string before CSS elements with Javascript code. An example of the original code:
h1 {
background: red;
}
.class #id {
color: black;
}
I want Javascript to filter it like this:
.myclass h1 {
background: red;
}
.myclass .class #id {
color: black;
}
Let's say the CSS-code is a Javascript string called str.