diff --git a/popup.js b/popup.js index e39355c..c323fff 100644 --- a/popup.js +++ b/popup.js @@ -529,10 +529,10 @@ document.addEventListener('DOMContentLoaded', () => { username: rule.username, password: rule.password }, (response) => { - // Return text after a short delay + // 提供短暂的“清理中...”视觉反馈后关闭插件 setTimeout(() => { - if (element) element.innerHTML = originalContent; - }, 1500); + window.close(); + }, 1500); // 保持 1500ms 反馈后关闭,也可改为更短如 200ms,为保持原逻辑体验暂设 1500ms }); } }