IsThereAnyDeal / AugmentedSteam

Augments your Steam Experience
https://augmentedsteam.com
GNU General Public License v3.0
1.4k stars 86 forks source link

[FEATURE REQUEST] Append nicknames to friends' names (same as Steam client option) #1919

Closed bottleblue closed 2 months ago

bottleblue commented 5 months ago

Current Behavior (if any)

Nicknames take the place of actual names which can be confusing

Desired Behavior

To have the same option "Append nickname to friends' names" from the Steam client

Motivation / Use Case for Changing the Behavior

The friends list in Steam's website doesn't have the option of appending nicknames to friends' names like the Steam client so it lists all your friends by the nickname which can be confusing and unhelpful if you don't use a unique nickname for everyone. I use descriptions of games we play together or games we traded, as nicknames. For example I may give them the nickname of "L4D2" if we play that game together so I know which friend plays that and can possibly invite next time.

I like using nicknames but don't want to view the friends list that way. That's probably why Steam gave us this option in the client. I don't know why they didn't do the same thing for the website. Can this be implemented in Augmented Steam?

friendslist

candela97 commented 3 months ago

This is doable, but in practice the only way to get the user's original name AFAICT is to fetch the miniprofile hover, which may amount to a lot of requests.

https://steamapi.xpaw.me/#IPlayerService/GetNicknameList only returns accountids too, unfortunately.

bottleblue commented 3 months ago

So not likely?

candela97 commented 3 months ago

Experimental for now. but feel free to side-load a build for your browser and give it a try: https://github.com/IsThereAnyDeal/AugmentedSteam/actions/runs/10085966694

bottleblue commented 3 months ago

I don't know how to sideload lol

candela97 commented 3 months ago

On Firefox, open about:debugging, should be fairly straightforward. On Chrome you'll need to enable developer mode from the extension management page, then load unpacked. It's best if you test on a separate browser profile, or backup your settings first.

bottleblue commented 3 months ago

It was actually about:debugging. Where do I get the extension file from?

edit: I'm assuming it's the bottom of the page where it says Artifacts

bottleblue commented 3 months ago

Hey it worked nice! Thanks for adding it. I didn't see an option in the settings to enable/disable it though. I guess that's for the official release.

It'd be cool if we moused over the nickname part it shows the entire nickname. A lot of it gets cutoff even in the miniprofile.

candela97 commented 3 months ago

It'd be cool if we moused over the nickname part it shows the entire nickname. A lot of it gets cutoff even in the miniprofile.

I tried that but it didn't work. I guess it's being intercepted by the miniprofile hover. Best keep nicknames short I suppose, since there's not enough space to put it on a newline either.

bottleblue commented 3 months ago

Got it. Firefox only lets me install this temporarily. Everytime I restart browser I have to install it again. I can't figure out an easy way to make it permanent so I'll just wait till the official release with this feature.

Thanks again for adding it.

bottleblue commented 3 months ago

Something I noticed, if you go to a friend's friendslist and look at the Friends in Common section it still shows their names as nicknames.

1

candela97 commented 3 months ago

That's because I made it so it only works on your own profile. But yeah it should work on common friends as well, thanks for testing!

bottleblue commented 3 months ago

And Blocked users lol

candela97 commented 3 months ago

We only load features on friends and groups tabs, other tabs are not supported. It's a little tricky to handle navigating between these tabs, so I think it's best to keep it simple for now.

bottleblue commented 3 months ago

I understand, just wanted to let you know. Thx!