Merge PR #10: add Hotmail Graph account pool flow

This commit is contained in:
QLHazyCoder
2026-04-11 13:50:30 +08:00
16 changed files with 3299 additions and 89 deletions
+12
View File
@@ -26,6 +26,9 @@
console.log('[MultiPage:vps-panel] Content script loaded on', location.href);
const VPS_PANEL_LISTENER_SENTINEL = 'data-multipage-vps-panel-listener';
const {
isRecoverableStep9AuthFailure,
} = self.MultiPageActivationUtils || {};
if (document.documentElement.getAttribute(VPS_PANEL_LISTENER_SENTINEL) !== '1') {
document.documentElement.setAttribute(VPS_PANEL_LISTENER_SENTINEL, '1');
@@ -137,6 +140,12 @@ async function waitForExactSuccessBadge(timeout = 30000) {
while (Date.now() - start < timeout) {
throwIfStopped();
const statusText = getStatusBadgeText();
if (isOAuthCallbackTimeoutFailure(statusText)) {
throw new Error(`STEP9_OAUTH_TIMEOUT::${statusText}`);
}
if (typeof isRecoverableStep9AuthFailure === 'function' && isRecoverableStep9AuthFailure(statusText)) {
throw new Error(`STEP9_OAUTH_RETRY::${statusText}`);
}
if (statusText === '认证成功!') {
return statusText;
}
@@ -147,6 +156,9 @@ async function waitForExactSuccessBadge(timeout = 30000) {
if (isOAuthCallbackTimeoutFailure(finalText)) {
throw new Error(`STEP9_OAUTH_TIMEOUT::${finalText}`);
}
if (typeof isRecoverableStep9AuthFailure === 'function' && isRecoverableStep9AuthFailure(finalText)) {
throw new Error(`STEP9_OAUTH_RETRY::${finalText}`);
}
throw new Error(finalText
? `CPA 面板状态不是“认证成功!”,当前为“${finalText}”。`
: 'CPA 面板长时间未出现“认证成功!”状态徽标。');