|
|
|
@ -510,8 +510,8 @@ QString WebPage::userAgentForUrl(const QUrl &url) const |
|
|
|
{ |
|
|
|
{ |
|
|
|
const QString &host = url.host(); |
|
|
|
const QString &host = url.host(); |
|
|
|
|
|
|
|
|
|
|
|
// Let Google services (and Facebook) play nice with us
|
|
|
|
// Let Google services play nice with us
|
|
|
|
if (host.contains("google") || host.contains("facebook")) { |
|
|
|
if (host.contains("google")) { |
|
|
|
if (s_fakeUserAgent.isEmpty()) { |
|
|
|
if (s_fakeUserAgent.isEmpty()) { |
|
|
|
s_fakeUserAgent = QString("Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/10.0 Safari/%2").arg(qz_buildSystem(), QupZilla::WEBKITVERSION); |
|
|
|
s_fakeUserAgent = QString("Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/10.0 Safari/%2").arg(qz_buildSystem(), QupZilla::WEBKITVERSION); |
|
|
|
} |
|
|
|
} |
|
|
|
|