How to manipulate pseudo selectors :after and :before

How to manipulate pseudo selectors :after and :before

I have the impression $('h1:after') e.g. doesn't work. How to manipulate these pseudo selectors with jQuery?
Thank you