diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-12 10:52:30 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-12 10:52:30 +0100 |
commit | 5def060d8f63c548449873490ce7b84ce9c11954 (patch) | |
tree | 571961abb90cf15a4b7a81d59a8ca0a5254e72cc | |
parent | dfe5a3789c5833c3e6313f708661b22048d6a5e2 (diff) | |
download | qutebrowser-5def060d8f63c548449873490ce7b84ce9c11954.tar.gz qutebrowser-5def060d8f63c548449873490ce7b84ce9c11954.zip |
Update UA completions
-rw-r--r-- | qutebrowser/config/configdata.yml | 12 | ||||
-rw-r--r-- | scripts/dev/ua_fetch.py | 3 |
2 files changed, 9 insertions, 6 deletions
diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 6b5687fc2..22a4b2151 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -621,14 +621,14 @@ content.headers.user_agent: # Vim-protip: Place your cursor below this comment and run # :r!python scripts/dev/ua_fetch.py - - "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like - Gecko) Chrome/87.0.4280.66 Safari/537.36" - - Chrome 87 Linux + Gecko) Chrome/88.0.4324.96 Safari/537.36" + - Chrome 88 Linux - - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/87.0.4280.66 Safari/537.36" - - Chrome 87 Win10 + like Gecko) Chrome/88.0.4324.104 Safari/537.36" + - Chrome 88 Win10 - - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 - (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36" - - Chrome 87 macOS + (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36" + - Chrome 88 macOS supports_pattern: true desc: | User agent to send. diff --git a/scripts/dev/ua_fetch.py b/scripts/dev/ua_fetch.py index a4ef889a0..7c0692cb4 100644 --- a/scripts/dev/ua_fetch.py +++ b/scripts/dev/ua_fetch.py @@ -50,6 +50,9 @@ for ua_string in reversed(response.json()): continue if any(part.startswith("OPR/") or part.startswith("Edg/") for part in parts): continue + if 'Chrome/99.0.7113.93' in parts: + # Fake or false-positive entry + continue user_agent = qutebrowser.config.websettings.UserAgent.parse(ua_string) |