I would never hardcode a reference.
You’re referring to the post where I shared a script that looks up arbitrary words from an online dictionary. The only hard-coded part are the CSS selectors and the URL, which can be easily updated in the template (or switch the dictionary altogether).