JSFiddle - React, Tailwind, and code Playground
HTML
<div id="creditos">
<span class='creditos'>Design por <a href='https://google.com' target='_blank'>Nome do designer.</a></span>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type='text/javascript'>
$(document).ready(function() {
let c = $('span.creditos > a');
let link = c.attr("href")
console.log(link)
if (link != 'https://google.com') {
window.location = 'https://google.com'
}
});
</script>