Build a plugin to show a notification after clicking a hyperlink

As the title, I want to build a plugin to show a notification after clicking a hyperlink. However, I don’t know how to build a Logseq plugin and register a click event in the plugin.
Are there any samples about this issue?
Thanks,