|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
/* ============================================================
|
|
|
|
|
* QupZilla - WebKit based browser |
|
|
|
|
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com> |
|
|
|
|
* Copyright (C) 2010-2016 David Rosca <nowrep@gmail.com> |
|
|
|
|
* |
|
|
|
|
* This program is free software: you can redistribute it and/or modify |
|
|
|
|
* it under the terms of the GNU General Public License as published by |
|
|
|
|
@ -37,11 +37,15 @@ UserAgentDialog::UserAgentDialog(QWidget* parent) |
|
|
|
|
ui->globalComboBox->setLayoutDirection(Qt::LeftToRight); |
|
|
|
|
ui->table->setLayoutDirection(Qt::LeftToRight); |
|
|
|
|
|
|
|
|
|
const QString os = QzTools::operatingSystem(); |
|
|
|
|
m_knownUserAgents << QString("Opera/9.80 (%1) Presto/2.12.388 Version/12.16").arg(os) |
|
|
|
|
<< QString("Mozilla/5.0 (%1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36").arg(os) |
|
|
|
|
<< QString("Mozilla/5.0 (%1) AppleWebKit/537.51.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A").arg(os) |
|
|
|
|
<< QString("Mozilla/5.0 (%1; rv:42.0) Gecko/20100101 Firefox/42.0").arg(os); |
|
|
|
|
const QString arch = QzTools::cpuArchitecture(); |
|
|
|
|
QString platform = QzTools::operatingSystem(); |
|
|
|
|
if (!arch.isEmpty()) |
|
|
|
|
platform.append(QL1S(" ") + arch); |
|
|
|
|
|
|
|
|
|
m_knownUserAgents << QString("Opera/9.80 (%1) Presto/2.12.388 Version/12.16").arg(platform) |
|
|
|
|
<< QString("Mozilla/5.0 (%1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36").arg(platform) |
|
|
|
|
<< QString("Mozilla/5.0 (%1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7").arg(platform) |
|
|
|
|
<< QString("Mozilla/5.0 (%1; rv:47.0) Gecko/20100101 Firefox/47.0").arg(platform); |
|
|
|
|
|
|
|
|
|
ui->globalComboBox->addItems(m_knownUserAgents); |
|
|
|
|
|
|
|
|
|
|