How to remove profile links? Editing media in same tab?

I have a problem with editing images in my profile. When I want to edit an image a new tab is opened. How can I fix it?

I’m also trying to remove the profile-link in the comments and display the @username (wordpress login username) instead of the full name. Does anyone know how to do that?