mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Browser+Ladybird: Let the list of user agent strings be shared
This commit is contained in:
parent
d93911928b
commit
63d09f6daf
5 changed files with 45 additions and 14 deletions
20
Userland/Libraries/LibWebView/UserAgent.cpp
Normal file
20
Userland/Libraries/LibWebView/UserAgent.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2023, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "UserAgent.h"
|
||||
|
||||
namespace WebView {
|
||||
|
||||
HashMap<StringView, StringView> const user_agents = {
|
||||
{ "Chrome Linux Desktop"sv, "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"sv },
|
||||
{ "Firefox Linux Desktop"sv, "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"sv },
|
||||
{ "Safari macOS Desktop"sv, "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_5_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Safari/605.1.15"sv },
|
||||
{ "Chrome Android Mobile"sv, "Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.5845.114 Mobile Safari/537.36"sv },
|
||||
{ "Firefox Android Mobile"sv, "Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/116.0 Firefox/116.0"sv },
|
||||
{ "Safari iOS Mobile"sv, "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1"sv },
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue