| 1234567891011121314151617181920212223242526272829303132 |
- // background/steps/fill-paypal-login.js — Step 8: Fill PayPal login email
- (function attachBackgroundStep13(root, factory) {
- root.MultiPageBackgroundStep13 = factory();
- })(typeof self !== 'undefined' ? self : globalThis, function createBackgroundStep13Module() {
- function createStep13Executor(deps = {}) {
- const {
- addLog,
- generateRandomEmail,
- sendToContentScriptResilient,
- } = deps;
- async function executeStep13(state) {
- await addLog('步骤 8:正在填写 PayPal 登录邮箱...');
- const email = generateRandomEmail();
- await addLog(`已生成随机邮箱: ${email}`);
- // The checkout-paypal content script auto-injects on paypal.com via manifest.
- // After Stripe form submission, the tab has redirected to paypal.com.
- await sendToContentScriptResilient('checkout-paypal', {
- type: 'EXECUTE_STEP',
- step: 8,
- source: 'background',
- payload: { email },
- });
- }
- return { executeStep13 };
- }
- return { createStep13Executor };
- });
|