Change link anchor text on load but restore on click

Lets say I have a bunch of links with the same class but different anchor text like

<a class="hey" href="sitepoint.com">sitepoint</a>
<a class="hey" href="google.com">google</a>

When the page loads I want the anchor text of each link to display the same text of my choosing. However, when the visitor clicks a link the anchor changes back to the orignial. It would be best if all links could be changed back their original if any link is clicked but this isn’t necessary.

Any help is apprecaited.

Is this for a mystery game or something?