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:
parent
bcce0326fc
commit
96af9e6f7f
|
@ -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
Loading…
Reference in New Issue
Block a user