Inve1951 / BetterDiscordStuff

my BD plugins & themes, focused on enhancing user experience
Other
293 stars 535 forks source link

Fix profile picture size regex #207

Closed pixel5718 closed 1 year ago

pixel5718 commented 1 year ago

Regex was not replacing size=96 and link was looking like this: ".webp?size=96?size=4096".

Inve1951 commented 1 year ago

How have you encountered such a small pfp? The only one being looked at is the one in the profile modal header, which is pretty big.

Did I not consider some setting?

pixel5718 commented 1 year ago

I have no idea if there is some settings which makes it 96. When i open my own profile picture i get this link: https://cdn.discordapp.com/avatars/447472545739046913/0c36bea7c70305cf706e95dde640d9b0.webp?size=96?size=4096

pixel5718 commented 1 year ago

I found which setting is doing that: Apperance -> Zoom Level On 50% it use 60px avatars On 67-75% it use 96px avatars 80-100% use three digits size so regex is working for it but on lower zooms this plugin isn't working correctly

Inve1951 commented 1 year ago

sry for the delay it slipped my mind - just wanted to bump the version before merge thx :+1: