X Profile Switcher  —  Chrome/Opera/Edge extension (MV3)
========================================================

Sign in to X (Twitter) with an auth_token, switch between your accounts in ONE click, and
(optionally) pin each account to its own sticky mobile proxy IP for safe bulk operation.
Everything is stored locally in the browser (chrome.storage.local) — nothing leaves your PC.

HOW IT WORKS
  Switching = swap the auth_token cookie (X's login session) on x.com + twitter.com, mint a
  fresh ct0 (CSRF token), clear the old session cookies, and reload x.com — so you land logged
  in as the chosen account. The currently-active account is detected by reading the live cookie.

STICKY PROXY  (per-account IP — recommended for bulk)
  X links accounts that share an IP. With a sticky proxy loaded, each account is pinned to its
  OWN sticky port (= its own stable exit IP). That IP never changes when you switch, and stays
  the same for that account even after weeks — until you remove the account or rotate its IP.
  - Tap the shield (the proxy button) and paste a sticky mobile proxy. ANY format works:
        host:port:user:pass   .   user:pass@host:port   .   scheme://user:pass@host:port
        host:port@user:pass   .   user:pass:host:port   .   host:port
    (HTTP, HTTPS, SOCKS4/5.)  Only x.com / twitter.com / twimg.com is routed through the proxy;
    everything else stays DIRECT.
  - Each account row shows its live sticky IP + country flag + MOBILE/ISP type + latency.
  - The rotate button on a row assigns a brand-new sticky IP to that account.
  - Past 10 accounts a sticky proxy is REQUIRED (the extension blocks adding more without one).
  - Strongly recommended: a sticky MOBILE proxy (e.g. DataImpulse).

LOAD IT (unpacked)
  1. Open chrome://extensions  (or opera://extensions / edge://extensions)
  2. Turn on "Developer mode" (top-right)
  3. "Load unpacked" -> pick this folder (x-profile-switcher)
  4. Pin the bird icon. Click it to open the popup.

USE
  - Click + and paste your accounts, ONE PER LINE. Any format works (bare 40-hex token, or a
    full account line user:pass:...:AUTHTOKEN:2fa). Duplicates are skipped.
  - Click any account to SWITCH to it (the tab reloads logged in as that account, through its IP).
  - PROFILE PICS + NAMES: while logged into X with ANY account, the popup auto-fetches every saved
    account's avatar + display name + @username.
  - rename / copy token / new sticky IP / delete / search / Export (label:token).
  - "Sign out of X" clears the session cookies.

NOTES
  - Only talks to x.com / twitter.com (+ ip-api.com / ipwho.is to show each proxy's IP & country).
  - Permissions: cookies, storage, tabs, proxy, webRequest, webRequestAuthProvider + host access.
  - Don't run another proxy-controlling extension at the same time — only one can own the browser
    proxy. (This is separate from the DataImpulse Proxy extension; use one at a time.)
  - Icon: a glossy blue bird on a navy tile (icons/icon16|32|48|128.png).
  - This is a separate extension; it does not affect the DataImpulse Proxy extension's files.
