Beispiele
by michapixel
HTML
<!-- Learn about this code on MDN: https://developer.mozilla.org/de/docs/Web/CSS/:not -->
<p class="paidcontent">Irgendein Text.</p>
<p class="paidcontent-freeuntilbadge">Irgendein anderer Text.</p>
<span class="paidcontent">Noch mehr Text<span>
JavaScript
document.querySelectorAll('[class*="paidcontent"]:not([class*="freeuntilbadge"])').forEach((e, n)=> {
e.setAttribute('style', 'color:red');
});