mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
remove enable_js_hook
This commit is contained in:
@@ -276,7 +276,6 @@ namespace NekoGui {
|
||||
_add(new configItem("sub_clear", &sub_clear, itemType::boolean));
|
||||
_add(new configItem("sub_insecure", &sub_insecure, itemType::boolean));
|
||||
_add(new configItem("sub_auto_update", &sub_auto_update, itemType::integer));
|
||||
_add(new configItem("enable_js_hook", &enable_js_hook, itemType::integer));
|
||||
_add(new configItem("log_ignore", &log_ignore, itemType::stringList));
|
||||
_add(new configItem("start_minimal", &start_minimal, itemType::boolean));
|
||||
_add(new configItem("max_log_line", &max_log_line, itemType::integer));
|
||||
|
||||
@@ -126,7 +126,6 @@ namespace NekoGui {
|
||||
|
||||
// Security
|
||||
bool skip_cert = false;
|
||||
int enable_js_hook = 0;
|
||||
QString utlsFingerprint = "";
|
||||
|
||||
// Remember
|
||||
|
||||
@@ -145,10 +145,6 @@
|
||||
<source>Ignore TLS errors when updating subscription</source>
|
||||
<translation>هنگام بهروزرسانی اشتراک، خطاهای TLS را نادیده گرفته شود</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable hook.js</source>
|
||||
<translation type="unfinished">فعال سازی hook.js</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Advanced system proxy settings. Please select a format.</source>
|
||||
<translation>تنظیمات پیشرفته پروکسی سیستم. لطفا یک قالب را انتخاب کنید.</translation>
|
||||
|
||||
@@ -163,10 +163,6 @@
|
||||
<source>Skip TLS certificate authentication by default (allowInsecure)</source>
|
||||
<translation>Не проверять подлинность TLS сертификатов по умолчанию</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable hook.js</source>
|
||||
<translation>Использовать hook.js</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Default uTLS Fingerprint</source>
|
||||
<translation>uTLS fingerprint по умолчанию</translation>
|
||||
|
||||
@@ -167,10 +167,6 @@
|
||||
<source>Ignore TLS errors when updating subscription</source>
|
||||
<translation>更新订阅时忽略 TLS 错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enable hook.js</source>
|
||||
<translation>启用 hook.js 功能</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide dashboard at startup</source>
|
||||
<translation>启动时不显示仪表盘</translation>
|
||||
|
||||
@@ -228,7 +228,6 @@ DialogBasicSettings::DialogBasicSettings(QWidget *parent)
|
||||
ui->utlsFingerprint->addItems(IS_NEKO_BOX ? Preset::SingBox::UtlsFingerPrint : Preset::Xray::UtlsFingerPrint);
|
||||
|
||||
D_LOAD_BOOL(skip_cert)
|
||||
ui->enable_js_hook->setCurrentIndex(NekoGui::dataStore->enable_js_hook);
|
||||
ui->utlsFingerprint->setCurrentText(NekoGui::dataStore->utlsFingerprint);
|
||||
}
|
||||
|
||||
@@ -304,7 +303,6 @@ void DialogBasicSettings::accept() {
|
||||
// Security
|
||||
|
||||
D_SAVE_BOOL(skip_cert)
|
||||
NekoGui::dataStore->enable_js_hook = ui->enable_js_hook->currentIndex();
|
||||
NekoGui::dataStore->utlsFingerprint = ui->utlsFingerprint->currentText();
|
||||
|
||||
// 关闭连接统计,停止刷新前清空记录。
|
||||
|
||||
@@ -709,8 +709,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>632</width>
|
||||
<height>299</height>
|
||||
<width>198</width>
|
||||
<height>58</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
@@ -758,44 +758,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="horizontalGroupBox3">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_14">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Enable hook.js</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="enable_js_hook">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Disable</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Enable</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string notr="true">Enable + load std module</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="horizontalGroupBox2">
|
||||
<property name="sizePolicy">
|
||||
|
||||
Reference in New Issue
Block a user