tomer8007 / whatsapp-web-incognito

A Chrome extension that disables read receipts and presence updates on WhatsApp Web
MIT License
312 stars 74 forks source link

[Feature Request] Whatsapp desktop version implementation #69

Closed MacgyverJohnson closed 2 years ago

MacgyverJohnson commented 2 years ago

HI @tomer8007 ,

Totally loved your implementation of this whatsapp web incognito....Could it be implemented with whatsapp desktop. This might be possible using the same way that @m4heshd from whatsapp-desktop-dark can mod whatsapp desktop (although he just modifies css)

Best regards.

tomer8007 commented 2 years ago

Hi, this was previously asked in #7. Basically, I never tried, but it probably isn't hard.

m4heshd commented 2 years ago

although he just modifies css

It wasn't just CSS. The theme switching button which I added in later updates were done via injecting JS. BTW, thanks for the tag because I just discovered this cool utility because of that.

Basically, I never tried, but it probably isn't hard.

I can guarantee that it would be quite difficult. The issue is, a lot of Chrome's dev scopes aren't available for Electron which makes it difficult to pre-inject a renderer controller. Electron does have something dedicated for that called preload but requires a lot of effort injecting that to already compiled and packaged code. The most horrifying part for me was reading through thousands of obfuscated lines of code to find a place to inject some debugger access code. Then the entry point for renderer injection. Things kinda become a breeze after that though. Also what I discovered while doing WADark was the WA web and desktop are two vastly different code bases. They do share some stuff but hardly similar.

Conclusion here is, we can't use the same set of code on both applications and even if we managed to get it working, maintaining it would be hell. But I'm positive that it isn't impossible. Just difficult. That's just my opinion and that is mostly because I can't remember anything from the process of maintaining that project now. 😁

MacgyverJohnson commented 2 years ago

Conclusion here is, we can't use the same set of code on both applications and even if we managed to get it working, maintaining it would be hell. But I'm positive that it isn't impossible. Just difficult. That's just my opinion and that is mostly because I can't remember anything from the process of maintaining that project now. 😁

Thanks for the clarification....