remove enable_js_hook

This commit is contained in:
armv9
2024-06-28 11:56:47 +09:00
parent 9bc3be6ea0
commit 8a2eab506f
7 changed files with 2 additions and 56 deletions

View File

@@ -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));

View File

@@ -126,7 +126,6 @@ namespace NekoGui {
// Security
bool skip_cert = false;
int enable_js_hook = 0;
QString utlsFingerprint = "";
// Remember

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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();
// 关闭连接统计,停止刷新前清空记录。

View File

@@ -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">