Gaya setelah JavaScript
var styleElem = document.head.appendChild(document.createElement("style"));
styleElem.innerHTML = "#YOUR_DIV:after {background: black;}";
Zarden
var styleElem = document.head.appendChild(document.createElement("style"));
styleElem.innerHTML = "#YOUR_DIV:after {background: black;}";