Change data in user card by plugin

I’m writing a plugin to give every user a score and now I want to show the score in the user card.
I have generated the score from api with an algorithm. now I want to add a code to my javascript plugin to run when somebody clicked on user picture(when user’s card is shown).what event listeners should I use in my code.I need the username too.

these topics may help:

1- topics and replies in this post:

2- this post:

1 Like

No.It doesn’t help.I just need to show a number on user’s card

There are three plugin outlets available in UserCard component’s template

1 Like

Link is broken.please change it

sorry updated the link now. just a typo