This Chrome extension analyzes webpage content (such as emails) to detect if it is AI-generated or human-written using the Anthropic Claude API.
- Detects AI-generated content on any webpage, including Gmail.
- Uses Anthropic Claude API for analysis.
- Securely stores your API key in your browser (never in code).
- Simple popup UI for entering your API key and running analysis.
- JavaScript (Vanilla, ES6)
- HTML/CSS (Popup UI)
- Chrome Extensions API (Manifest V3)
- Anthropic Claude API (external AI service)
- User installs the extension and enters their Anthropic API key in the popup.
- When the user clicks "Analyze This Page," the extension extracts visible text from the current tab.
- The extension sends the text to the Anthropic Claude API for analysis.
- The result (AI-generated, Human-written, or Uncertain) is displayed in the popup.
- The API key is stored using
chrome.storage.localand never hardcoded or committed to the repository. - All API requests are made from the extension context.
- Clone or download this repository.
- Go to
chrome://extensions/in Chrome. - Enable "Developer mode".
- Click "Load unpacked" and select the project folder.
- Click the extension icon, enter your Anthropic API key, and start analyzing!
graph TD;
A[User clicks extension icon] --> B[Popup UI opens];
B --> C[User enters API key];
B --> D[User clicks Analyze];
D --> E[Content script extracts page text];
E --> F[Popup sends text to Claude API];
F --> G[Claude API returns analysis];
G --> H[Popup displays result];
manifest.json— Chrome extension manifest (V3)popup.html— Popup UIpopup.js— Popup logic, API calls, storagecontent.js— Content script for extracting page texticons.py— (Optional) Icon generation script