1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-13 10:32:11 +01:00

Updated Italian translation.

- added Facebook into list of servers to send fake user agent
This commit is contained in:
nowrep 2012-04-23 15:50:21 +02:00
parent bcce0326fc
commit 96af9e6f7f
2 changed files with 615 additions and 539 deletions

View File

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

File diff suppressed because it is too large Load Diff