╔══════════════════════════════════════════════════════════════════╗
║  BatchGPT — Bulk Image Generation for ChatGPT                    ║
║  v1.4.1  ·  Chrome extension (Manifest V3)                       ║
╚══════════════════════════════════════════════════════════════════╝

INSTALL (takes about 30 seconds)
────────────────────────────────────────────────────────────────────
1. Unzip this file somewhere permanent, e.g.  C:\Tools\BatchGPT
      ⚠ Do NOT run it from inside the .zip, and do not delete or move
        the folder afterwards — Chrome loads it from that exact path.

2. Open Chrome and go to:      chrome://extensions

3. Turn ON "Developer mode"  (toggle, top-right corner).

4. Click "Load unpacked"  (top-left) and select the folder you
   unzipped — the one that directly contains  manifest.json

5. Pin BatchGPT to the toolbar (puzzle-piece icon → pin).


HOW TO USE
────────────────────────────────────────────────────────────────────
1. Open  https://chatgpt.com  and make sure you are logged in.
2. Click the BatchGPT icon → the side panel opens.
3. Check the dot in the panel header:
       green  = connected and ready
       red    = not connected → reload the chatgpt.com tab
   (You can also press Settings ⚙ → Connection → Test.)
4. Paste your prompts — ONE PROMPT PER LINE.
   Or use the  ↥ .txt  /  ↥ CSV  buttons (examples in  samples\).
5. Pick an aspect ratio, optionally add reference images.
6. Press  ▶ Generate   (or Ctrl+Enter).

Finished images download automatically to:
      Downloads\ChatGPT-Auto\


TROUBLESHOOTING
────────────────────────────────────────────────────────────────────
• Nothing happens / "tab not connected"
      → Reload the chatgpt.com tab, then press Generate again.
        Chrome keeps the old script alive in tabs opened before the
        extension was installed.

• "Response finished without an image"
      → Settings ⚙ → turn ON "Force image mode".

• "Couldn't type the prompt"
      → ChatGPT changed its page layout. All the selectors live in
        one place: the CONFIG object at the top of  content.js

• Everything fails instantly
      → Open the chatgpt.com tab, press F12, and look in Console for
        lines starting with  [BatchGPT]  — they say exactly what broke.


GOOD TO KNOW
────────────────────────────────────────────────────────────────────
• Runs entirely in your browser. No API key, no server, no account.
  The "Sign in" button only saves an email locally on that PC — it is
  not a real login and nothing is uploaded anywhere.

• ChatGPT's own rate limits still apply. For big batches, raise
  Settings ⚙ → "Delay between prompts" (default 3s).

• Settings, prompts and reference images are stored per-PC, so the
  second computer starts fresh.

• Not affiliated with OpenAI. Automating the ChatGPT web UI may
  conflict with OpenAI's Terms of Use — use on your own account, at
  your own risk. See README.md for the full explanation.
