Skip to content

Commit

Permalink
Switch to Edge UA for Google Accounts site-specific quirk
Browse files Browse the repository at this point in the history
Seems to work just as well, and is a bit closer to what we actually are.

See qutebrowser#5182, qutebrowser#4810
  • Loading branch information
The-Compiler committed Jun 29, 2020
1 parent 03dda3e commit db13e52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qutebrowser/browser/webengine/webenginesettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,15 @@ def _init_site_specific_quirks():
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/99 "
"Safari/537.36")
edge_ua = ("Mozilla/5.0 ({os_info}) "
"AppleWebKit/{webkit_version} (KHTML, like Gecko) "
"{upstream_browser_key}/{upstream_browser_version} "
"Safari/{webkit_version} "
"Edg/{upstream_browser_version}")

user_agents = {
'https://web.whatsapp.com/': no_qtwe_ua,
'https://accounts.google.com/*': firefox_ua,
'https://accounts.google.com/*': edge_ua,
'https://*.slack.com/*': new_chrome_ua,
'https://docs.google.com/*': firefox_ua,
'https://drive.google.com/*': firefox_ua,
Expand Down

0 comments on commit db13e52

Please sign in to comment.