diff --git a/src/lib/other/qzsettings.cpp b/src/lib/other/qzsettings.cpp index f8c9e862d..1138316c4 100644 --- a/src/lib/other/qzsettings.cpp +++ b/src/lib/other/qzsettings.cpp @@ -46,10 +46,10 @@ void QzSettings::loadSettings() loadTabsOnActivation = settings.value("LoadTabsOnActivation", false).toBool(); autoOpenProtocols = settings.value("AutomaticallyOpenProtocols", QStringList()).toStringList(); blockedProtocols = settings.value("BlockOpeningProtocols", QStringList()).toStringList(); - allowJsGeometryChange = settings.value("allowJavaScriptGeometryChange", false).toBool(); - allowJsHideMenuBar = settings.value("allowJavaScriptHideMenuBar", false).toBool(); - allowJsHideStatusBar = settings.value("allowJavaScriptHideStatusBar", false).toBool(); - allowJsHideToolBar = settings.value("allowJavaScriptHideToolBar", false).toBool(); + allowJsGeometryChange = settings.value("allowJavaScriptGeometryChange", true).toBool(); + allowJsHideMenuBar = settings.value("allowJavaScriptHideMenuBar", true).toBool(); + allowJsHideStatusBar = settings.value("allowJavaScriptHideStatusBar", true).toBool(); + allowJsHideToolBar = settings.value("allowJavaScriptHideToolBar", true).toBool(); settings.endGroup(); settings.beginGroup("Browser-Tabs-Settings"); diff --git a/src/lib/preferences/jsoptions.cpp b/src/lib/preferences/jsoptions.cpp index baf109580..4eb27d95f 100644 --- a/src/lib/preferences/jsoptions.cpp +++ b/src/lib/preferences/jsoptions.cpp @@ -33,10 +33,10 @@ JsOptions::JsOptions(QWidget* parent) settings.beginGroup("Web-Browser-Settings"); ui->jscanCloseWindow->setChecked(settings.value("allowJavaScriptCloseWindow", false).toBool()); ui->jscanOpenWindow->setChecked(settings.value("allowJavaScriptOpenWindow", false).toBool()); - ui->jscanChangeSize->setChecked(settings.value("allowJavaScriptGeometryChange", false).toBool()); - ui->jscanHideMenu->setChecked(settings.value("allowJavaScriptHideMenuBar", false).toBool()); - ui->jscanHideStatus->setChecked(settings.value("allowJavaScriptHideStatusBar", false).toBool()); - ui->jscanHideTool->setChecked(settings.value("allowJavaScriptHideToolBar", false).toBool()); + ui->jscanChangeSize->setChecked(settings.value("allowJavaScriptGeometryChange", true).toBool()); + ui->jscanHideMenu->setChecked(settings.value("allowJavaScriptHideMenuBar", true).toBool()); + ui->jscanHideStatus->setChecked(settings.value("allowJavaScriptHideStatusBar", true).toBool()); + ui->jscanHideTool->setChecked(settings.value("allowJavaScriptHideToolBar", true).toBool()); ui->jscanAccessClipboard->setChecked(settings.value("allowJavaScriptAccessClipboard", false).toBool()); settings.endGroup();