diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json
index 9a588d2..90fa849 100644
--- a/app/_locales/en/messages.json
+++ b/app/_locales/en/messages.json
@@ -23,10 +23,6 @@
"message": "Enable notifications:",
"description": "Enable Notifications"
},
- "promptBeforeDownload": {
- "message": "Prompt before download:",
- "description": "Prompt before download"
- },
"setKey": {
"message": "Set Key",
"description": "Set Key"
diff --git a/app/_locales/zh/messages.json b/app/_locales/zh/messages.json
index 21ffcfa..8c82e46 100644
--- a/app/_locales/zh/messages.json
+++ b/app/_locales/zh/messages.json
@@ -23,10 +23,6 @@
"message": "允许桌面通知",
"description": "允许桌面通知"
},
- "promptBeforeDownload": {
- "message": "下载前确认",
- "description": "下载前确认"
- },
"setKey": {
"message": "设置密钥",
"description": "设置密钥"
diff --git a/app/scripts/AriaDownloader.js b/app/scripts/AriaDownloader.js
index 96a756b..32b761a 100644
--- a/app/scripts/AriaDownloader.js
+++ b/app/scripts/AriaDownloader.js
@@ -60,18 +60,6 @@ async function onGot(result, downloadItem, history) {
header: `Cookie: ${downloadItem.cookies}`,
};
}
- if (result.enableDownloadPrompt) {
- const newPath = prompt(`Do you want to download:`, downloadItem.filename);
- if (newPath == null) {
- return;
- }
-
- params = {
- ...params,
- ...parsePath(newPath),
- 'summary-interval': 1,
- };
- }
let inter = null;
await aria2
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 0ad80e7..bc0f189 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -45,7 +45,6 @@ async function downloadAgent() {
'motrixAPIkey',
'extensionStatus',
'enableNotifications',
- 'enableDownloadPrompt',
'minFileSize',
'blacklist',
'motrixPort',
diff --git a/app/scripts/config.js b/app/scripts/config.js
index fc15a13..8522fab 100644
--- a/app/scripts/config.js
+++ b/app/scripts/config.js
@@ -18,7 +18,6 @@ function ConfigView() {
const [extensionStatus, setExtensionStatus] = useState(false);
const [enableNotifications, setEnableNotifications] = useState(false);
const [downloadFallback, setDownloadFallback] = useState(true);
- const [enableDownloadPrompt, setEnableDownloadPrompt] = useState(false);
const [minFileSize, setMinFileSize] = useState('');
const [blacklist, setBlacklist] = useState([]);
const [darkMode, setDarkMode] = useState(false);
@@ -33,7 +32,6 @@ function ConfigView() {
'motrixAPIkey',
'extensionStatus',
'enableNotifications',
- 'enableDownloadPrompt',
'minFileSize',
'blacklist',
'darkMode',
@@ -81,13 +79,6 @@ function ConfigView() {
setEnableNotifications(result.enableNotifications);
}
- if (typeof result.enableDownloadPrompt === 'undefined') {
- browser.storage.sync.set({ enableDownloadPrompt: false });
- setEnableDownloadPrompt(false);
- } else {
- setEnableDownloadPrompt(result.enableDownloadPrompt);
- }
-
if (typeof result.blacklist === 'undefined') {
browser.storage.sync.set({ blacklist: [] });
setBlacklist([]);
@@ -253,24 +244,6 @@ function ConfigView() {
- {/* Prompt status switch */}
-
- __MSG_promptBeforeDownload__
-
-
-
- {
- browser.storage.sync.set({
- enableDownloadPrompt: !enableDownloadPrompt,
- });
- setEnableDownloadPrompt((x) => !x);
- }}
- />
-
-
-
{/* Dark mode switch */}
__MSG_darkMode__