Pure JS solution to grab a pseudo element's content attribute.