diff options
author | Christian Dywan <christian@twotoasts.de> | 2018-08-26 15:53:10 +0200 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2018-08-26 15:53:10 +0200 |
commit | bf955b92c13928996b64ba483008834094e3c705 (patch) | |
tree | c24054b437b2b66a279f03c296ddc02053045d1c | |
parent | 57fa97773fc1f708fe572e8ed9fd9bf7a2c8f740 (diff) | |
download | midori-git-identify_chrome.tar.gz |
Identify as Chrome in the user agentidentify_chrome
-rw-r--r-- | core/tab.vala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/tab.vala b/core/tab.vala index 1592e719..54f69490 100644 --- a/core/tab.vala +++ b/core/tab.vala @@ -50,9 +50,11 @@ namespace Midori { string? uri = null, string? title = null) { Object (related_view: related, web_context: web_context, visible: true); - get_settings ().set_user_agent_with_application_details ( + var settings = get_settings (); + settings.set_user_agent_with_application_details ( Config.PROJECT_NAME, Config.CORE_VERSION); - get_settings ().enable_developer_extras = true; + settings.user_agent = settings.user_agent.replace ("Version/11.0", "Chrome/55.0.2876.0"); + settings.enable_developer_extras = true; if (pinned) { load_uri (uri ?? "internal:speed-dial"); |