If you click that, it opens a demo with a link that's ostensibly to google, but actually goes somewhere else.
The script the OP uses replaces the href, so once you click it, it'll reflect the true destination.
As others have mentioned, you can get around that by doing a redirect and cancelling the link action instead. Then it will always show the fake target.