You can use jQuery to interact with ratings.
The following code will show a message, when the "heart" icon is clicked. For this we will use the categories ID to find it using jQuery.
AJS.toInit(function () { setTimeout(function () { jQuery('.content-rating-icon[data-category-id=2]').click(function () { alert('Thank you.'); return true; } ); }, 1000); })