fix: 收敛 2925 邮箱修复范围

- 回退非必要的 2925 行为改动,仅保留已验证有效的修复
- 保留 bounce 转发地址解析、中文日期解析与邮箱页复用时的 ready 恢复
- 同步最小化测试断言,保持当前代码与测试一致
This commit is contained in:
Isulew
2026-04-28 00:50:29 +08:00
parent 941102200f
commit cf2a720531
9 changed files with 20 additions and 37 deletions
-8
View File
@@ -1,13 +1,6 @@
// content/mail-2925.js - Content script for 2925 Mail (steps 4, 8)
// Injected dynamically on: 2925.com
(function initMail2925ContentScript() {
if (window.__MULTIPAGE_MAIL2925_SCRIPT_LOADED__) {
console.log('[MultiPage:mail-2925] Duplicate injection skipped on', location.href);
return;
}
window.__MULTIPAGE_MAIL2925_SCRIPT_LOADED__ = true;
const MAIL2925_PREFIX = '[MultiPage:mail-2925]';
const isTopFrame = window === window.top;
@@ -1223,4 +1216,3 @@ async function handlePollEmail(step, payload) {
}
}
})();
-2
View File
@@ -2,7 +2,6 @@
// Injected on: auth0.openai.com, auth.openai.com, accounts.openai.com
// Dynamically injected on: chatgpt.com
(function initSignupPageContentScript() {
console.log('[MultiPage:signup-page] Content script loaded on', location.href);
const SIGNUP_PAGE_LISTENER_SENTINEL = 'data-multipage-signup-page-listener';
@@ -3561,4 +3560,3 @@ async function step5_fillNameBirthday(payload) {
log('步骤 5:已点击“完成帐户创建”,当前步骤直接完成,不再等待页面结果。');
return completionPayload;
}
})();
+5 -5
View File
@@ -1,6 +1,6 @@
// content/utils.js — Shared utilities for all content scripts
var getActivationStrategy = self.MultiPageActivationUtils?.getActivationStrategy;
const getActivationStrategy = self.MultiPageActivationUtils?.getActivationStrategy;
function detectScriptSource({
injectedSource,
@@ -26,7 +26,7 @@ function detectScriptSource({
return 'vps-panel';
}
var SCRIPT_SOURCE = (() => {
const SCRIPT_SOURCE = (() => {
return detectScriptSource({
injectedSource: window.__MULTIPAGE_SOURCE,
url: location.href,
@@ -38,9 +38,9 @@ function getRuntimeScriptSource() {
return window.__MULTIPAGE_SOURCE || SCRIPT_SOURCE;
}
var LOG_PREFIX = `[MultiPage:${SCRIPT_SOURCE}]`;
var STOP_ERROR_MESSAGE = '流程已被用户停止。';
var flowStopped = false;
const LOG_PREFIX = `[MultiPage:${SCRIPT_SOURCE}]`;
const STOP_ERROR_MESSAGE = '流程已被用户停止。';
let flowStopped = false;
if (!window.__MULTIPAGE_UTILS_LISTENER_READY__) {
window.__MULTIPAGE_UTILS_LISTENER_READY__ = true;