Skip to content

Browser Extension.md

CIPRIAN STEFAN PLESCA edited this page Sep 2, 2026 · 1 revision

Browser Extension

The extension is built on Manifest V3 and focuses on a minimal, useful interaction model.

Extension Flow

flowchart TD
  Visit[User opens a page] --> Worker[Background Service Worker]
  Worker --> API[TradeGuard API]
  API --> Storage[chrome.storage.local]
  Storage --> Badge[Action Badge]
  Storage --> Popup[Popup Details]
  API --> Content[Content Script]
  Content --> Banner[High-Risk Banner]
Loading

Permission Strategy

  • activeTab for current-page context
  • tabs to react to navigation changes
  • storage for API base URL and check results
  • Host permissions for API access and current URL checks

User Interface

The extension exposes:

  • Badge text and color
  • Popup with score and reasons
  • High-risk page banner
  • Options page for API base URL

Clone this wiki locally