dark-whatsapp icon indicating copy to clipboard operation
dark-whatsapp copied to clipboard

Blurried profile pic in audio messages (Whatsapp Web Beta)

Open macmessa opened this issue 3 years ago • 11 comments

  • Browser: Google Chrome
  • WhatsApp Web version: 2.2126.14
  • Dark-WhatsApp version: 3.7.0
  • Additional context: Blurried profile pic in audio messages.
  • Screenshot: 5WWYNSop6O

macmessa avatar Jul 21 '21 13:07 macmessa

Same version, yet I can't reproduce the issue. Do you have any of the configuration options enabled? I tried the ones that are relevant, but to no avail.

vednoc avatar Jul 21 '21 18:07 vednoc

Yes, sorry I forgot to mention:

wQMqzbdER6

macmessa avatar Jul 21 '21 18:07 macmessa

Here's what it's like on my end. The image above is affected by this option, but contact images aren't. There's also this line that specifically says to avoid adding blur to avatars. To avoid confusion, lines 1667–1668 are obsolete and should be removed. It might be fixed if you reinstall it (click on install badge then on reinstall button), but that would be very weird.

https://user-images.githubusercontent.com/18245694/126543779-9e962c9f-1a0e-447e-b2c0-190e6f4242a4.mp4

vednoc avatar Jul 21 '21 18:07 vednoc

That's odd... In my debug I got these styles in the avatar:

image

I've also seen the lines you mentioned, maybe the classes in my Whatsapp are messed up?

image

macmessa avatar Jul 21 '21 20:07 macmessa

I apologize for late reply.

Those lines were added 12 months ago. Line 1656 was added 8 months ago and it resolved the issue with a better selector, but I forgot to remove the obsolete code. It makes no sense to me why it doesn't work. There's some kind of conflict somewhere. Maybe, just maybe, you have an old version of Dark-WhatsApp that's still active. I'm mentioning this because it did happen a few times in the past.

The classes are indeed messed up. What you could do is replace img._2goTk with them, but keep in mind that this will disable auto-update and you'll have to reinstall or force an update and override your changes when I release a new version. If that works, I could add that fix and release it. If not, and do try this first, change it to img[src*='/pp?'] because it's a better selector.

vednoc avatar Jul 21 '21 23:07 vednoc

Don't worry, it's not that big deal, I've just reported in case you didn't see it. I'm not sure but I think it's my whatsapp web that is generating other styles since stylus just use them, maybe I'll try your approach and create a pull request after testing it.

macmessa avatar Jul 22 '21 02:07 macmessa

Do let me know how it goes. Every once in a while some weirdness like this happens. It happened at least a dozen times with Dark-WhatsApp. Also, here's what the HTML looks like on my end:

image

vednoc avatar Jul 22 '21 14:07 vednoc

Wow, it's worse than I thought, here's mine:

image

Even the image url is different. Are you using Whatsapp Web Beta, that allows multi devices connected?

macmessa avatar Jul 22 '21 17:07 macmessa

The URL has Facebook-like scheme. Are you by chance using "Messenger Rooms" feature? That said, this is likely going to fix it:

-                img:not([src*='/pp?']) {
+                img:not([src*='/pp?']):not(src*='pps.whatsapp.net') {

Are you using Whatsapp Web Beta, that allows multi devices connected?

No. I have a "frozen" account because I stopped using WA quite a while ago. The only reason I still use it is to maintain this userstyle.

vednoc avatar Jul 22 '21 17:07 vednoc

@macmessa I just signed up for beta... my icon doesn't change when I click on it... did I miss something?

kyle-ds avatar Oct 04 '21 22:10 kyle-ds

Idk, mine still has the same behavior 3dtmdNoaBI

macmessa avatar Oct 05 '21 11:10 macmessa