UserScript to replace text element via class name with a hyperlink

Job ID: 35315824

Budget: $10 – $30 AUD

I want to replace the text from an element using tampermonkey / greasemoney

customer = document.getElementsByClassName("customer-name")[0].title;

with the same text inside the element but hyperlinked also

html version of desired link would be <a href="https://domain.com/search?"customer>customer</a>
Related categories: JavaScript Grease Monkey jQuery