I tried to figure it out, but my skill level ain't there.
Depending on how much you understand what you're doing, my suggestion is:
Have a link for every unique name (and one for all other names) that have the same text and lead to the same page. The unique name links will just modify %TNAME in their link scripts.
Then, write a JavaScript function to hide the links depending on the name that the user gave earlier. So, if the name is Alice, the only link that'll be visible is the one corresponding to Alice.
The issue with this approach is that, because you're just making HTML elements not visible, a 'clever' user could easily make the links visible again and click them, breaking your game.
I don't think this is a big deal, since if a user is actively trying to break your game, they can just turn off JavaScript.
Hopefully someone more knowledgeable answers, since it'd be neat to see how they'd go about this. And if someone more knowledgeable happens to be reading this, I've got a question of my own:
If I add the script tags for CDNs to use JQuery, would that work? I'm talking about adding them directly to the CYS page text, since I don't know how (or if you can) add stuff to the head element. I guess I could try doing it, but given my recent experience, I'd probably make some mistake. As such, I'm more curious about it being hypothetically possible, aha.