step1.js 610 B

123456789101112131415161718192021
  1. (function attachBackgroundStep1(root, factory) {
  2. root.MultiPageBackgroundStep1 = factory();
  3. })(typeof self !== 'undefined' ? self : globalThis, function createBackgroundStep1Module() {
  4. function createStep1Executor(deps = {}) {
  5. const {
  6. addLog,
  7. completeStepFromBackground,
  8. ensureSignupEntryPageReady,
  9. } = deps;
  10. async function executeStep1() {
  11. await addLog('步骤 1:正在打开 ChatGPT 官网...');
  12. await ensureSignupEntryPageReady(1);
  13. await completeStepFromBackground(1, {});
  14. }
  15. return { executeStep1 };
  16. }
  17. return { createStep1Executor };
  18. });