JavaScript establece CSS después de la propiedad

/*Its Not possible to directly access pseudo-elements ":before|:after"
with Javascript because they're not part of the DOM. 

One workaround could be changing an elements class
to one that has different pseudo-elments or you could always refactor
to not use pseudo-elments */
Friendly Hawk