A Chrome extension for safer ChatGPT workflows. It helps users detect and anonymize Personally Identifiable Information (PII) in text before sending prompts, and it also supports a local face-swap flow for uploaded images so users can preview privacy-preserving replacements before sharing them.
npm installnpm run devThis will watch for changes and rebuild automatically. After making changes:
- Rebuild the extension (if not in watch mode)
- Go to
chrome://extensions/ - Click the refresh icon on the extension card
npm run buildThis creates an optimized build in the dist/ folder.
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
dist/folder from this project
- Navigate to ChatGPT: Open
https://chatgpt.comand start typing a prompt - Open Extension: Click the extension icon in Chrome's toolbar
- Detect PII: Click "Detect Private Information" to extract and analyze the text
- Review Tags: Words are displayed as buttons with color-coded tags:
- Grey: "O" (Other - not private information)
- Red: "NAME" (or other PII tags)
- Adjust Tags: Click any word button to change its tag using the dropdown menu
- Replace Text: Click "Replace" to replace detected PII with anonymized tags in the ChatGPT chatbox
ImageTab now supports a localhost face-swap pipeline instead of browser-side face box detection.
- Extract the uploaded image from ChatGPT
- Choose a target face image in the SafePrompt side panel
- Run the local face-swap service
- Preview the swapped result
- Replace the uploaded ChatGPT image with the swapped preview
See local-face-swap/README.md for the local service setup, including how to download inswapper_128.onnx.