-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whatsapp Web User-Agent #5210
Comments
What Qt version, backend and qutebrowser version (see (There's a reason the issue template asks you for this - so I don't have to 😉) |
No template did pop up when i created the new message. Qt: 5.14.0 Yes, with |
I guess you clicked "feature request" rather than "bug report" or "support" then.
...what qutebrowser version?
Can you show |
I clicked "New Issue". Qb versión is 1.9, but it was still in 1.8, i just upgraded it to see if it was fixed, but no. Output from that command is:
I think the problem is in the UA, what's the user agent for default --temp-basedir qb instance= (edited for readability by @The-Compiler) |
You can do However, it shouldn't matter much with v1.9.0 as that includes a workaround for exactly this issue - are you sure you are in fact running the new version after the update (and it didn't just open a new window in the old one)? |
Yeah, totally sure, and still, bug was also present in 1.8x, it started like today when reloading whatsapp webpage. Changing UA doesn't do anything, still not working. |
Well, I can reproduce with v1.8.0 and it works fine in v1.9.0 here. Does anything change if you hit Shift-R to force a reload? |
I got it fixed. After changing User Agent back to default i deleted the cache and then opened qb and worked fine. I'm guessing maybe the UA is somehow stored in the cache. Regarding the same, not sure if you remember, but i asked some time ago about the site-specific ua not working for me, i'm guessing maybe something similar is happening, i think after you open some sites for the first time, the user-agent you are using gets saved in the cache for that website, and regardless of you switching it later, it reads it from the cache (not for all sites thou, fb and google work fine when switchnig it). |
Sadly the problem persists, after reloading the page a couple times in these 2 days, suddenly stopped working and the previous fix is not working anymore. Maybe whatsapp is doing some changes in the web version. |
I did some testing, commented every single setting i modified in What differences are between normal qb and qb with the flag |
I was able to reproduce now. Forcing a reload with Shift-R fixes it, but I now also pushed a site-specific quirk which does essentially that.
The Instagram thing is unrelated - like I described there, the UA a website gets via JavaScript always is the global one.
Something like that seems to be happening for WhatsApp Web.
You don't have state like cookies. This issue only happens when visiting the WhatsApp Web site when already registered via the QR code, not with the registration itself. |
Well, after a couple reopenings and cache deletings i managed to get it working again. I'm gonna dig into some way of deleting whatsapp cookies from the browser to made somi kind of autofix. Thanks a lot! |
FWIW as a workaround, you can put this in a // ==UserScript==
// @include https://web.whatsapp.com/
// ==/UserScript==
if (document.body.innerText.replace(/\n/g, ' ').search(/whatsapp works with.*to use whatsapp.*update/i) !== -1)
navigator.serviceWorker.getRegistration().then(function (r) { r.unregister(); document.location.reload() }); |
Ohhh, didn't know you could run greasemonkey scripts in qb, great! Thanks a lot! |
OK, so on Debian Buster, adding the
|
Hi!
For some reason (probably some whatsapp update), i'm no longer able to use the desktop version of whatsapp (whatsapp web). I remember when i started using qb i had to try quite some user agents to get it working and i was wondering if you guys know one that works now.
The text was updated successfully, but these errors were encountered: