Macro Request: Get webpage elements by class

So I think that it may be done by using the Execute a javascript in Google Chrome action. Alas, I don’t know much JS. Could anyone help me out here?