gets all links matching specified class