For Messages, next to the message you want to mark as a favorite, tap .
Scripting on this page enhances content navigation, but does not change the content in any way.