JSFiddle - React, Tailwind, and code Playground
HTML
<span class="thanksButton">
<a href="showthread.php?action=remove_thank"></a>
<a href="showthread.php?action=thank"></a>
</span>
JavaScript
var removeLink = $('a[href*="showthread.php?action=remove_thank"]');
var thanksLink = $('a[href*="showthread.php?action=thank"]');
if (removeLink) { removeLink.text('Nie dziękuj') }
if (thanksLink) { thanksLink.text('Podziękuj') }