A Chrome extension that detects AI-generated text with a Google Translate-style interface. Simply highlight text on any webpage, and get an AI detection score from 1-10. Setup requires users to have an anthropic API key
- Google Translate-style UI: Floating icon appears when text is selected
- AI Detection: Uses Anthropic's Claude API to analyze text
- Clean Interface: Minimal, non-intrusive popup panel
- Toggle On/Off: Easy extension control via popup menu
- Smart Selection: Automatically ignores text in editable fields
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right)
- Click "Load unpacked"
- Select the extension directory
-
Add API Key:
- Click the extension icon in Chrome's toolbar
- Enter your Anthropic API key in the settings (optional - you can also hardcode it in
background.js) - Or edit
background.jsand replaceYOUR_API_KEY_HEREwith your actual API key
-
Toggle Extension:
- Use the ON/OFF toggle in the popup to enable/disable the extension
- Make sure the extension is enabled (toggle is ON)
- Highlight any text on a webpage
- Click the floating icon that appears above the selection
- View the AI detection score (1-10) and reasoning in the popup panel
/extension
/assets - Extension icons
/popup - Browser action popup (settings)
/content - Content script (selection detection)
/panel - Detection result panel (iframe)
background.js - Service worker (API calls)
manifest.json - Extension manifest
- All scripts are external (no inline scripts) to comply with CSP
- Uses Manifest V3
- Panel is isolated in an iframe to prevent CSS conflicts
- Extension respects editable fields (textarea, input, contenteditable)
The extension uses Anthropic's Claude API. You can:
- Set the API key in the popup settings (stored locally)
- Or hardcode it in
background.js(line 3)
Default model: claude-3-sonnet-20240229
You'll need to add icon files to the assets/ directory:
assets/icon16.pngassets/icon32.pngassets/icon48.pngassets/icon128.png
Quick Icon Creation:
- Open
create_icons.htmlin your browser - Right-click each canvas and "Save image as..."
- Save them with the correct names in the
assets/folder
Alternatively, you can create your own icons using any image editor. The icons should be square PNG files with the specified dimensions.
