Skip to content

Repository files navigation

Structura

AI-powered web data extraction — select text on any page, extract structured data with AI, export to CSV or Feishu Bitable.

完全符合 2026 年 Chrome Web Store 严格审查规范的开源扩展样板。

Key Design Decisions

  • Manifest V3: Mandatory for all new Chrome extensions since 2023.
  • No <all_urls>: activeTab + scripting grants one-shot host access only on user gesture.
  • Strict CSP: script-src 'self'; object-src 'self'; blocks remote code and eval.
  • Service Worker (type: module): Zero persistent background process; ES module imports supported.
  • Two locales: English + Simplified Chinese i18n out of the box.
  • No remote dependencies: Zero CDN, zero external fonts, zero iframes.

Project Structure

source/
  manifest.json         Chrome/Edge MV3 manifest
  background/
    service-worker.js    Event-driven service worker
  popup/
    popup.html           Action popup
    popup.js             Popup logic (type: module)
    popup.css            Popup styles (dark theme)
  icons/
    icon16.png           Required: 16x16
    icon48.png           48x48
    icon128.png          128x128
  _locales/
    en/messages.json     English strings
    zh_CN/messages.json  简体中文

Permissions: Why Only These Three?

["storage", "activeTab", "scripting"]
  • storage — Persist user settings and extension state.
  • activeTab — Temporary host permission for the active tab, only on user gesture. The recommended replacement for <all_urls>.
  • scripting — Required alongside activeTab to call executeScript().

Content Security Policy

"script-src 'self'; object-src 'self';"

Only 'self' — no CDN, no 'unsafe-inline', no 'unsafe-eval'. The popup HTML also carries a redundant <meta> CSP layer.

Cross-Browser Compatibility

Includes browser_specific_settings for Chrome (minimum_chrome_version: "120"), Edge, and Firefox (gecko UUID with strict_min_version).

2026 CWS Review Checklist

  • Replace placeholder icon PNGs with production artwork
  • Set author.email to your verified developer email
  • Replace the gecko.id UUID for Firefox submission
  • Write and host a Privacy Policy (required by CWS)
  • Submit via Chrome Developer Dashboard
  • Confirm the extension works fully offline (review sandbox may block network)

Development

  1. Open chrome://extensions
  2. Enable "Developer mode"
  3. Click "Load unpacked" and select the source/ directory

License

MIT

About

AI-powered web data extraction. Select text on any page, extract structured data with AI, export to CSV or Feishu Bitable.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages