Here's an idea that someone with a little extra time on their hands, and adequate frustration with the user experience on AliExpress, could do to improve it.
If the user experience on AliExpress.com was better, people would not be so turned off by the obstructive design (and annoying dark UX patterns and gamification), sales process friction would be reduced, and people would likely come back again to the site. Instead of being so frustrated with the experience that the barrier for using AliExpress ever again remains as high as it is today.
The idea should at least be out there. To get that someone started, here is a clean, copy-pasteable ARCHITECTURE.md summary that person could drop straight into their project repository for themselves or their AI coding agent:
Clean AliExpress UI — Browser Extension Architecture
1. Project Goal
Build a lightweight, 100% client-side browser extension (Chrome, Brave, Edge, Firefox) that completely replaces AliExpress's cluttered Search and Product pages with a fast, minimal UI, while handing off directly to AliExpress's native Checkout page (confirm_order.htm).
2. Why This Architecture Works
- Zero Backend / Zero Cost: Runs entirely inside the user's browser session on
*.aliexpress.com, automatically inheriting cookies, login state, shipping region, and local currency (NOK,USD, etc.). - No CORS or API Key Issues: Same-origin execution eliminates cross-origin blocks and removes the need for AliExpress Affiliate/Dropshipping API secrets.
- Resilient to Layout Changes: Instead of scraping fragile, obfuscated HTML/CSS classes, the extension reads structured JSON payloads (
window.runParamsandmtop/fetchresponses) and renders inside an isolated Shadow DOM. - Anti-Bot Safe: Leaves AliExpress's native runtime and
baxiasecurity scripts running invisibly in the background so requests look 100% identical to normal human browsing (avoiding slider CAPTCHAs).
3. Core Technical Design
A. Two-World Content Script Bridge
- Main-World Interceptor (
world: "MAIN",runAt: "document_start"):- Monkey-patches
window.fetchandXMLHttpRequestto passively capture search and product JSON responses as they arrive. - Reads
window.runParamson product pages (/item/*.html). - Dispatches sanitized payloads via
window.dispatchEvent(new CustomEvent('AE_DATA_READY', { detail })).
- Monkey-patches
- Isolated-World UI (
world: "ISOLATED"):- Visually hides AliExpress's native
#rootcontainer via CSS (opacity: 0; pointer-events: none; z-index: -1) without callingwindow.stop(). - Mounts a React / Svelte / Tailwind app inside a Shadow DOM so AliExpress's global stylesheets never leak into the custom UI.
- Includes a hotkey/button (
Alt+O) to toggle back to the original AliExpress UI anytime, plus an Error Boundary that automatically reveals the native page if a schema changes.
- Visually hides AliExpress's native
B. Page-by-Page Behavior
| Page | URL Pattern | Data Source | User Action |
|---|---|---|---|
| Search Results | /w/wholesale*, /wholesale* | Passive fetch/XHR interception + initial SSR JSON | Displays clean grid/table with real prices, shipping clarity, and normalized /item/<id>.html links (bypassing Bundle bait). |
| Product Page | /item/*.html | window.runParams + passive mtop PDP responses | Renders clean gallery, multi-axis SKU/variant selector (exact price & stock per combination), and specs table. |
| Checkout | confirm_order.htm | Direct URL redirect (objectId, skuId, quantity) | Hands off cleanly to AliExpress's native checkout flow (fallback: programmatic .click() on hidden native "Buy Now" button). |
4. Recommended Tech Stack & Distribution
- Framework: WXT (Manifest V3, built-in
createShadowRootUi, hot-reload, single-command builds for Chrome & Firefox). - UI & Validation: React + Tailwind CSS + TypeScript + Zod (with defensive fallback chains for
Standardvs.Choiceproduct schemas). - Installation:
- Personal / Testing:
pnpm build-> Load unpacked folder inchrome://extensions(orabout:debuggingin Firefox). - Public Release: Package via
npx wxt zipfor Chrome Web Store ($5 one-time fee) or Firefox Add-ons (free). Keep host permissions restricted strictly to*://*://*and avoid trademarked branding.
- Personal / Testing:
5. AI-Assisted Build Workflow (3–5 Hours)
- Connect Agent to Live Browser: Launch Chrome with
--remote-debugging-port=9222(logged into AliExpress) and attach Playwright MCP or Chrome DevTools MCP so the agent can inspect real JSON payloads directly without triggering CAPTCHAs. - Scaffold & Hide Native UI: Initialize WXT + React + Tailwind, hide
#root, and mount the Shadow DOM overlay. - Generate Defensive Parsers: Have the agent inspect live JSON from 3 listing types (Standard, Choice, Multi-Variant) and generate normalized TypeScript adapters.
- Build Search & Product Views: Implement search cards, variant-to-
skuIdmatching, and theconfirm_order.htmredirect. (Safety rule: instruct the agent never to click final payment confirmation during testing.)


