!favorite command for a server?

Is it any where possible to do this, I know there is no console command, but are there any alternatives?

What I want is a command that can add a server IP to your favorites just my typing it in.

No, every server would just add themselves as soon as you join.

I think it’s meant for the player to be able to, as opposed to being forced by the server. Interesting idea, though. Would be interested in this, if it’s actually possible, since a couple of people ask how to add to favourites.